3 ms·
More than that: #[derive(Debug)] enum Colour { Red = 1, Blue = 2, Green = 4, } fn main() { println!("{:?}", Co
by masklinn 6y ago
More than that:
#[derive(Debug)]
enum Colour {
Red = 1,
Blue = 2,
Green = 4,
}
fn main() {
println!("{:?}", Colour::Blue);
println!("{}", Colour::Blue as u8);
}