(v: &CellValue)
| 98 | } |
| 99 | |
| 100 | fn to_f64(v: &CellValue) -> Option<f64> { |
| 101 | match v { |
| 102 | CellValue::Int64(x) => Some(*x as f64), |
| 103 | CellValue::Float64(x) => Some(*x), |
| 104 | _ => None, |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | /// Hashable, totally-ordered key for a coordinate tuple. |
| 109 | #[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord)] |