Boolean
true
false
fn main() { //explicitly define a bool let is_bool:bool = true; println!("explicitly_defined: {}", is_bool); // implicit let a = true; let b = false; println!("a: {}", a); println!("b: {}", b); }
Expression result
fn main() { // get a value from an expression let c = 10 > 2; println!("c: {}", c); }