pub enum Value {
Empty,
Number(f64),
Percentage(f64),
Currency(f64, Option<String>),
Date(String),
Time(String),
Boolean(bool),
Text(String),
}Expand description
What a cell holds, as ODF types it.
The type is the cell’s own declaration and is independent of how it is shown: a date is a date whatever format it is displayed in, which is what makes a spreadsheet sortable.
Variants§
Empty
Nothing. A cell that exists to carry a style, or to be spanned over.
Number(f64)
A number.
Percentage(f64)
A number that means a proportion: 0.15 shown as 15%.
Currency(f64, Option<String>)
An amount of money, with the currency code where the cell names one.
Date(String)
A date, as written: an ISO 8601 date or date and time.
Time(String)
A duration, as written: an ISO 8601 duration.
Boolean(bool)
True or false.
Text(String)
Text.
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