pub enum Change {
IndexCell {
row: usize,
change: ChangeIndexCell,
},
HeaderCell {
col: usize,
change: ChangeHeaderCell,
},
AddRows(Vec<usize>),
AddCols(Vec<usize>),
RemoveRows(Vec<(usize, IndexCell)>),
RemoveCols {
removed_header: Vec<(usize, HeaderCell)>,
removed_table: Vec<(usize, Vec<(usize, TableCell)>)>,
},
MoveRows(Vec<(usize, usize)>),
MoveCols(Vec<(usize, usize)>),
AddSelectionBoxes {
count: usize,
old_selected: Option<Selected>,
},
RemoveSelectionBoxes {
removed: Vec<Span>,
old_selected: Option<Selected>,
},
SetSelectionBoxes {
old_selection_boxes: Vec<Span>,
old_selected: Option<Selected>,
},
}Variants§
IndexCell
HeaderCell
AddRows(Vec<usize>)
AddCols(Vec<usize>)
RemoveRows(Vec<(usize, IndexCell)>)
RemoveCols
Fields
§
removed_header: Vec<(usize, HeaderCell)>MoveRows(Vec<(usize, usize)>)
MoveCols(Vec<(usize, usize)>)
AddSelectionBoxes
RemoveSelectionBoxes
SetSelectionBoxes
Implementations§
Source§impl Change
impl Change
pub fn index_cell(row: usize, change: ChangeIndexCell) -> Self
pub fn header_cell(col: usize, change: ChangeHeaderCell) -> Self
pub fn add_rows(positions: Vec<usize>) -> Self
pub fn add_cols(positions: Vec<usize>) -> Self
pub fn remove_rows(rows: Vec<(usize, IndexCell)>) -> Self
pub fn remove_cols( removed_header: Vec<(usize, HeaderCell)>, removed_table: Vec<(usize, Vec<(usize, TableCell)>)>, ) -> Self
pub fn move_rows(map: Vec<(usize, usize)>) -> Self
pub fn move_cols(map: Vec<(usize, usize)>) -> Self
Sourcepub fn add_selection_boxes(count: usize, old_selected: Option<Selected>) -> Self
pub fn add_selection_boxes(count: usize, old_selected: Option<Selected>) -> Self
One or more boxes were pushed to the end.
Sourcepub fn remove_selection_boxes(
removed: Vec<Span>,
old_selected: Option<Selected>,
) -> Self
pub fn remove_selection_boxes( removed: Vec<Span>, old_selected: Option<Selected>, ) -> Self
One or more boxes were removed (any indices).
pub fn set_selection_boxes( old_selection_boxes: Vec<Span>, old_selected: Option<Selected>, ) -> Self
pub fn is_selection_change(&self) -> bool
Trait Implementations§
impl StructuralPartialEq for Change
Auto Trait Implementations§
impl !Send for Change
impl !Sync for Change
impl Freeze for Change
impl RefUnwindSafe for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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