mirror of
https://github.com/KaiserY/trpl-zh-cn
synced 2025-02-25 05:42:18 +08:00
16 lines
304 B
Rust
16 lines
304 B
Rust
|
fn main() {
|
||
|
// ANCHOR: here
|
||
|
enum SpreadsheetCell {
|
||
|
Int(i32),
|
||
|
Float(f64),
|
||
|
Text(String),
|
||
|
}
|
||
|
|
||
|
let row = vec![
|
||
|
SpreadsheetCell::Int(3),
|
||
|
SpreadsheetCell::Text(String::from("blue")),
|
||
|
SpreadsheetCell::Float(10.12),
|
||
|
];
|
||
|
// ANCHOR_END: here
|
||
|
}
|