Enum xl::ExcelValue
source · [−]pub enum ExcelValue<'a> {
Bool(bool),
Date(NaiveDate),
DateTime(NaiveDateTime),
Error(String),
None,
Number(f64),
String(Cow<'a, str>),
Time(NaiveTime),
}
Expand description
ExcelValue
is the enum that holds the equivalent “rust value” of a Cell
s “raw_value.”
Variants
Bool(bool)
Date(NaiveDate)
DateTime(NaiveDateTime)
Error(String)
None
Number(f64)
String(Cow<'a, str>)
Time(NaiveTime)
Trait Implementations
sourceimpl<'a> Debug for ExcelValue<'a>
impl<'a> Debug for ExcelValue<'a>
sourceimpl Display for ExcelValue<'_>
impl Display for ExcelValue<'_>
sourceimpl<'a> PartialEq<ExcelValue<'a>> for ExcelValue<'a>
impl<'a> PartialEq<ExcelValue<'a>> for ExcelValue<'a>
sourcefn eq(&self, other: &ExcelValue<'a>) -> bool
fn eq(&self, other: &ExcelValue<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ExcelValue<'a>) -> bool
fn ne(&self, other: &ExcelValue<'a>) -> bool
This method tests for !=
.
impl<'a> StructuralPartialEq for ExcelValue<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for ExcelValue<'a>
impl<'a> Send for ExcelValue<'a>
impl<'a> Sync for ExcelValue<'a>
impl<'a> Unpin for ExcelValue<'a>
impl<'a> UnwindSafe for ExcelValue<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more