pub struct CellValue { /* private fields */ }Implementations§
Source§impl CellValue
impl CellValue
pub fn get_data_type(&self) -> &str
pub fn get_raw_value(&self) -> &CellRawValue
pub fn get_value(&self) -> Cow<'static, str>
pub fn get_value_number(&self) -> Option<f64>
pub fn get_value_lazy(&mut self) -> Cow<'static, str>
Sourcepub fn set_value<S: Into<String>>(&mut self, value: S) -> &mut Self
pub fn set_value<S: Into<String>>(&mut self, value: S) -> &mut Self
Set the raw value after trying to convert value into one of the supported data types.
Types that value may be converted to:
Empty- if the string was""Numeric- if the string can be parsed to anf64Bool- if the string was either"TRUE"or"FALSE"Error- if the string was either"#VALUE!","#REF!","#NUM!","#NULL!","#NAME?","#N/A","#DATA!"or"#DIV/0!"String- if the string does not fulfill any of the other conditions
pub fn set_value_lazy<S: Into<String>>(&mut self, value: S) -> &mut Self
pub fn set_value_string<S: Into<String>>(&mut self, value: S) -> &mut Self
pub fn set_value_bool(&mut self, value: bool) -> &mut Self
pub fn set_value_number<T>(&mut self, value: T) -> &mut Self
pub fn set_rich_text(&mut self, value: RichText) -> &mut Self
pub fn set_blank(&mut self) -> &mut Self
pub fn is_formula(&self) -> bool
pub fn get_formula(&self) -> &str
pub fn get_formula_obj(&self) -> Option<&CellFormula>
pub fn set_formula<S: Into<String>>(&mut self, value: S) -> &mut Self
pub fn set_formula_obj(&mut self, value: CellFormula) -> &mut Self
pub fn remove_formula(&mut self) -> &mut Self
pub fn set_formula_result_default<S: Into<String>>( &mut self, value: S, ) -> &mut Self
pub fn set_error<S: Into<String>>(&mut self, value: S) -> &mut Self
pub fn is_error(&self) -> bool
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl PartialOrd for CellValue
impl PartialOrd for CellValue
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 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