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.
We intentionally omit a date type. In Excel, a date is a plain
numeric serial and the notation is saved separately, as
CellStyle::num_format. This way, we can treat dates like
any other numeric type (e.g. SUM).
An Excel error is a value, not a Rust error, e.g. =1/0 evaluates
successfully to Error("#DIV/0!"). See EngineError for Rust errors.
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