1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
enum SpreadsheetCell { Int(i32), Float(f64), Text(String), } fn main() { let row: Vec<SpreadsheetCell> = vec![ SpreadsheetCell::Int(3), SpreadsheetCell::Float(10.12), SpreadsheetCell::Text(String::from("blue")), ]; println!("Hello, world!"); }