pub struct CellSnapshot { /* private fields */ }Expand description
In-memory snapshot of cell data, decoupled from any Workbook borrow.
Implementations§
Source§impl CellSnapshot
impl CellSnapshot
Sourcepub fn new(current_sheet: String) -> Self
pub fn new(current_sheet: String) -> Self
Create a new empty snapshot with the given current-sheet context.
Sourcepub fn set_cell(&mut self, sheet: &str, col: u32, row: u32, value: CellValue)
pub fn set_cell(&mut self, sheet: &str, col: u32, row: u32, value: CellValue)
Insert a cell value into the snapshot.
Sourcepub fn set_current_sheet(&mut self, sheet: &str)
pub fn set_current_sheet(&mut self, sheet: &str)
Change the current-sheet context used for unqualified cell references.
Trait Implementations§
Source§impl CellDataProvider for CellSnapshot
impl CellDataProvider for CellSnapshot
Auto Trait Implementations§
impl Freeze for CellSnapshot
impl RefUnwindSafe for CellSnapshot
impl Send for CellSnapshot
impl Sync for CellSnapshot
impl Unpin for CellSnapshot
impl UnwindSafe for CellSnapshot
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