I'm reading through The Rust Programming Language and have encountered this notation: 0u8.
let some_u8_value = 0u8;
match some_u8_value {
1 => println!("one"),
3 => println!("three"),
5 => println!("five"),
7 => println!("seven"),
_ => (),
}
After searching the web, I've found lots of examples of this notation being used (0b01001100u8, 0x82u8, 200u8), but what exactly does this notation mean?