pub enum CellValue {
Number(f64),
DateTime(DateTimeValue),
Text(Arc<str>),
Boolean(bool),
Error(String),
}Expand description
A cell’s value. Has a variant corresponding to each OOXML t attribute
(cell type).
Variants§
Number(f64)
The default when the t attribute is omitted. Non-date serial values
live here.
DateTime(DateTimeValue)
Converted from Number when resolve/style.rs determines, from the
numFmt, that the value is a date/time.
Text(Arc<str>)
A resolved string (shared string t="s" / inline str / str are all
unified into this form once resolved). Uses Arc<str> to avoid
duplicate allocations across cells that share the same string.
Boolean(bool)
Error(String)
t="e". Holds the error code string (e.g. "#DIV/0!") as-is.
Trait Implementations§
impl StructuralPartialEq for CellValue
Auto Trait Implementations§
impl Freeze for CellValue
impl RefUnwindSafe for CellValue
impl Send for CellValue
impl Sync for CellValue
impl Unpin for CellValue
impl UnsafeUnpin for CellValue
impl UnwindSafe for CellValue
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