pub enum RowOp {
Insert {
index: usize,
row: RowSet,
},
Update {
index: usize,
row: RowSet,
},
Remove {
index: usize,
key: RowKey,
},
Move {
from_index: usize,
to_index: usize,
key: RowKey,
},
Reorder {
order: Vec<usize>,
},
}Expand description
An incremental operation to apply to a row widget.
Variants§
Insert
Inserts a new row at index.
Update
Replaces the cells of the row at index.
Remove
Removes the row at index.
Move
Moves a row from from_index to to_index.
Reorder
Reorders all rows according to the specified permutation of original indices.
Trait Implementations§
impl Eq for RowOp
impl StructuralPartialEq for RowOp
Auto Trait Implementations§
impl Forget for RowOp
impl Freeze for RowOp
impl Move for RowOp
impl RefUnwindSafe for RowOp
impl Send for RowOpwhere
RawVecInner: Send,
impl Sync for RowOpwhere
RawVecInner: Sync,
impl Unpin for RowOp
impl UnsafeUnpin for RowOpwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
impl UnwindSafe for RowOpwhere
RawVecInner: UnwindSafe,
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