pub enum ResultData {
None,
Boolean(bool),
Integer(i64),
Float(f64),
String(String),
List(Vec<ResultData>),
Dict(Vec<(ResultData, ResultData)>),
Error(String),
}Expand description
What a cell holds once it has been evaluated.
There is deliberately no date variant. As in Excel, a date is a plain
numeric serial and the notation it was typed in lives on the cell, as
CellStyle::num_format – so ISNUMBER is true for a date, SUM counts
it, and every numeric path works on it untouched. Only rendering consults
the format, through Sheet::get_display_string.
An Excel error is a value, not a Rust error: =1/0 evaluates
successfully to Error("#DIV/0!"). See EngineError for the failures
that are not values.
Variants§
None
A blank cell. Coerces to 0 or "" depending on what reads it.
Boolean(bool)
TRUE or FALSE.
Integer(i64)
A whole number.
Float(f64)
A number that is not a whole number, or one too large for an i64.
A date is a Float holding its Excel serial.
String(String)
Text.
List(Vec<ResultData>)
An ordered sequence, for the engine-specific functions that return one. Not an Excel array.
Dict(Vec<(ResultData, ResultData)>)
Key/value pairs, for the engine-specific functions that return them.
Error(String)
An Excel error value, held as its code: #DIV/0!, #VALUE!, #N/A.
Trait Implementations§
Source§impl Clone for ResultData
impl Clone for ResultData
Source§fn clone(&self) -> ResultData
fn clone(&self) -> ResultData
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more