pub struct SheetEngine<'a> { /* private fields */ }Expand description
Coordinates sheet mutations with dependency graph maintenance.
Sheet remains the storage type and DepGraph remains the graph type, but
callers that mutate raw cell contents should go through this wrapper so
formula edges, dirty marking, and recalculation stay in sync.
Implementations§
Source§impl<'a> SheetEngine<'a>
impl<'a> SheetEngine<'a>
pub fn new(sheet: &'a mut Sheet, deps: &'a mut DepGraph) -> Self
pub fn set_cell_raw(&mut self, pos: CellPos, raw: &str)
pub fn clear_cell(&mut self, pos: CellPos)
pub fn write_cell_raw(&mut self, pos: CellPos, raw: &str)
pub fn write_cell_raw_and_recalculate(&mut self, pos: CellPos, raw: &str)
pub fn set_cell_raw_and_recalculate(&mut self, pos: CellPos, raw: &str)
pub fn recalculate(&mut self)
pub fn sort_by_column_and_recalculate(&mut self, col: usize, ascending: bool)
pub fn rebuild_formulas_and_recalculate(&mut self)
Auto Trait Implementations§
impl<'a> Freeze for SheetEngine<'a>
impl<'a> RefUnwindSafe for SheetEngine<'a>
impl<'a> Send for SheetEngine<'a>
impl<'a> Sync for SheetEngine<'a>
impl<'a> Unpin for SheetEngine<'a>
impl<'a> UnsafeUnpin for SheetEngine<'a>
impl<'a> !UnwindSafe for SheetEngine<'a>
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