pub struct Cell { /* private fields */ }Implementations§
Source§impl Cell
impl Cell
pub fn get_cell_value(&self) -> &CellValue
pub fn get_cell_value_mut(&mut self) -> &mut CellValue
pub fn set_cell_value(&mut self, value: CellValue) -> &mut Self
pub fn get_style(&self) -> &Style
pub fn get_style_mut(&mut self) -> &mut Style
pub fn set_style(&mut self, value: Style) -> &mut Self
pub fn get_coordinate(&self) -> &Coordinate
pub fn get_coordinate_mut(&mut self) -> &mut Coordinate
Sourcepub fn set_coordinate<T>(&mut self, coordinate: T) -> &mut Selfwhere
T: Into<CellCoordinates>,
pub fn set_coordinate<T>(&mut self, coordinate: T) -> &mut Selfwhere
T: Into<CellCoordinates>,
Change the coordinate. Change the formula address as well.
pub fn get_hyperlink(&self) -> Option<&Hyperlink>
pub fn get_hyperlink_mut(&mut self) -> &mut Hyperlink
pub fn set_hyperlink(&mut self, value: Hyperlink) -> &mut Self
pub fn get_cell_meta_index(&self) -> &u32
pub fn set_cell_meta_index(&mut self, value: u32) -> &mut Self
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 cell’s 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_error<S: Into<String>>(&mut self, value: S) -> &mut Self
pub fn set_formula<S: Into<String>>(&mut self, value: S) -> &mut Self
pub fn set_formula_result_default<S: Into<String>>( &mut self, value: S, ) -> &mut Self
pub fn set_blank(&mut self) -> &mut Self
pub fn get_data_type(&self) -> &str
pub fn get_raw_value(&self) -> &CellRawValue
pub fn is_formula(&self) -> bool
pub fn get_formula(&self) -> &str
pub fn get_formula_obj(&self) -> Option<&CellFormula>
pub fn get_formatted_value(&self) -> String
Trait Implementations§
Source§impl PartialOrd for Cell
impl PartialOrd for Cell
impl StructuralPartialEq for Cell
Auto Trait Implementations§
impl Freeze for Cell
impl RefUnwindSafe for Cell
impl Send for Cell
impl Sync for Cell
impl Unpin for Cell
impl UnwindSafe for Cell
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