Slide 13
Slide 13 text
Enums
enum Coffee {
Hot(u8), // temp F
Iced(bool), // still has ice
Instant,
}
fn main() {
let first_cup: Coffee = Coffee::Iced(true);
let second_cup: Coffee = Coffee::Hot(212);
println!("Drink {:?} then {:?}.", first_cup, second_cup);
}