Hello, forgive me this question....just starting.
The code below does not compile. The error lies in the pirint statement:
"no field XFloat on type `SpreadsheetCell"
I want to print the float value in the vector.
You can use the debug implementation to help you with that, since it can be easily derived:
#[derive(Debug)]
enum SpreadsheetCell {
XInt(i32),
XFloat(f64),
XText(String),
}
...
// Note that now you can use the :? to use the debug implementation in the println macro:
println!("Array {:?}", row[1]);