An unsigned integer holds a nonnegative whole number: zero or a positive number, with no decimal point. In Rust, unsigned integer types include u8, u16, u32, u64, u128, and usize. section 1.3
The number in a type such as u8 tells you how many bits it uses. A bit is either 0 or 1. More bits allow larger values: u8 holds up to 255, while u16 holds up to 65,535. section 1.3
fn main() {
let my_number: u8 = 100; #1
println!("{}", my_number as char);
}
This example declares my_number as a u8 and casts it to a character for printing. section 1.3








