Boolean Type
The type bool represents boolean values.
The only values of type bool are true and false.
In memory, bool values are represented as a single byte: false is 0, true is 1.
Boolean values support equality comparison (==, !=) but not ordering comparison (<, >, <=, >=).
fn main() -> i32 {
let a = true;
let b = false;
let c = a == b; // false
if c { 1 } else { 0 }
}