pub struct GridData { /* private fields */ }Expand description
The rows behind a data grid. Cloning shares the same data; editing replaces the row list copy-on-write, so query caches stay valid until a change.
Implementations§
Source§impl GridData
impl GridData
Sourcepub fn rows(&self) -> Rc<Vec<Row>>
pub fn rows(&self) -> Rc<Vec<Row>>
The current rows (tracked: views reading it rebuild on change).
Sourcepub fn set_cell(&self, row: usize, column: usize, value: Value)
pub fn set_cell(&self, row: usize, column: usize, value: Value)
Replaces one cell; out-of-range indices are ignored.
Sourcepub fn insert(&self, index: usize, row: Row)
pub fn insert(&self, index: usize, row: Row)
Inserts a row at index, or at the end when it is past the end.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for GridData
impl !Send for GridData
impl !Sync for GridData
impl !UnwindSafe for GridData
impl Freeze for GridData
impl Unpin for GridData
impl UnsafeUnpin for GridData
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