pub struct Dense { /* private fields */ }Expand description
A sheet’s values over its extent, row by row. See the module’s comment.
Implementations§
Source§impl Dense
impl Dense
Sourcepub fn get(&self, row: u32, col: u32) -> Option<&Value>
pub fn get(&self, row: u32, col: u32) -> Option<&Value>
A cell’s slot: inside the extent, what a read of the cell answers,
Value::Empty for a cell that holds nothing; None outside it.
Sourcepub fn each<E, F>(&self, area: &Area, f: F) -> Result<(), E>
pub fn each<E, F>(&self, area: &Area, f: F) -> Result<(), E>
Every value an area holds, row by row, to f, the area clamped to the
extent first, as a walk of the cells clamps it; an empty slot is
skipped. f is a type of its own and not a pointer, so that an
aggregate’s fold is compiled into the walk (KERNEL.25).
Trait Implementations§
impl StructuralPartialEq for Dense
Auto Trait Implementations§
impl Freeze for Dense
impl RefUnwindSafe for Dense
impl Send for Dense
impl Sync for Dense
impl Unpin for Dense
impl UnsafeUnpin for Dense
impl UnwindSafe for Dense
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