pub enum Value {
Num(f64),
Bool(bool),
Text(String),
Date(NaiveDate),
Array(Vec<Value>),
Array2(Array2<Value>),
Formula(String),
Error(Error),
Range {
sheet: Option<String>,
reference: Reference,
value: Option<Box<Value>>,
},
Empty,
}
Variants§
Num(f64)
Bool(bool)
Text(String)
Date(NaiveDate)
Array(Vec<Value>)
Array2(Array2<Value>)
Formula(String)
Error(Error)
Range
Empty
Implementations§
Source§impl Value
impl Value
pub fn is_num(&self) -> bool
pub fn is_bool(&self) -> bool
pub fn is_text(&self) -> bool
pub fn is_date(&self) -> bool
pub fn is_array(&self) -> bool
pub fn is_array2(&self) -> bool
pub fn is_empty(&self) -> bool
pub fn is_formula(&self) -> bool
pub fn is_range(&self) -> bool
pub fn is_err(&self) -> bool
pub fn ensure_single(&self) -> Value
pub fn as_num(&self) -> f64
pub fn as_bool(&self) -> bool
pub fn as_text(&self) -> String
pub fn as_date(&self) -> NaiveDate
pub fn as_array(&self) -> Vec<Value>
pub fn as_array2(&self) -> Array2<Value>
pub fn as_err(&self) -> Error
Trait Implementations§
Source§impl AddAssign for Value
impl AddAssign for Value
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moreSource§impl Ord for Value
impl Ord for Value
Source§impl PartialOrd for Value
impl PartialOrd for Value
impl Eq for Value
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.