pub enum Value {
Number(f64),
Text(String),
Boolean(bool),
Error(ExcelError),
Empty,
}Expand description
A runtime value — the evaluator’s currency.
Variants§
Number(f64)
A 64-bit float. Non-finite values never escape evaluation: any
operation producing inf/NaN folds to
ExcelError::Num.
Text(String)
Text (owned; this is the only allocating variant).
Boolean(bool)
A logical value.
Error(ExcelError)
An error stored as data — a cell that holds #REF!, or a range
element. Operators convert this to the hard
FormulaError::Eval channel on first
use; ISERROR and friends inspect it directly.
Empty
An empty cell.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more