published: 7th of February 2022
The boolean type in Rust is defined with the bool type annotation and can be either a true or false literal.
// Assign `true` to the `stuff` variable
let stuff = true;
// Annotate the `bool` type
let things: bool = false;
https://www.manning.com/books/rust-in-action