pub struct Cell {
pub value: CellValue,
pub style: Option<u32>,
}Expand description
One grid cell: a value and an optional style index.
style is an index into the workbook’s style table (the cellXfs list
in XLSX terms). sheet-core stores only the index — style definitions
(fonts, fills, number formats) belong to the format codec.
Fields§
§value: CellValueThe cell’s value.
style: Option<u32>Index into the workbook’s style table, if the cell is styled.
Implementations§
Source§impl Cell
impl Cell
Sourcepub const fn error(e: ExcelError) -> Self
pub const fn error(e: ExcelError) -> Self
Convenience constructor: a formula-error cell.
Sourcepub const fn with_style(self, style: u32) -> Self
pub const fn with_style(self, style: u32) -> Self
Builder: attaches style index style.
Trait Implementations§
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 UnsafeUnpin 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