I have an enum defined as shown below (TableCell). I then create a Vec (row) and push a TableCell into the the row. I then have another Vec (table_data) which I push the row into. Finally I do an output of the values stored in table_data:
#[derive(Debug)]
enum TableCell {
Label(String),
Float(f32),
}
let mut row = vec![];
row.push(TableCell::Float(client_budget.cost)); //(client_budget.cost = 1000.00)
let mut table_data = Vec::new();
table_data.push(row);
for value in table_data.iter() {
println!("{:#?}", value)
}
My output comes out as Float(1000.00). How do I get just the 1000.00?