pub enum Edit {
Insert {
axis: Axis,
at: u32,
count: u32,
},
Delete {
axis: Axis,
at: u32,
count: u32,
},
Move {
from: RangeRef,
to_row: u32,
to_col: u32,
},
InsertCells {
axis: Axis,
range: RangeRef,
},
DeleteCells {
axis: Axis,
range: RangeRef,
},
MoveToSheet {
from: RangeRef,
to_sheet: String,
to_row: u32,
to_col: u32,
},
}Expand description
A structural edit on one sheet.
Variants§
Insert
Insert count rows/cols before index at.
Delete
Delete count rows/cols starting at at.
Move
Cut-paste of a block: references into from now point into the block at to (top-left).
InsertCells
Insert Cells shifting down (Rows) or right (Cols): the cells of range and those
below (right of) it move by its height (width), within its columns (rows) only.
DeleteCells
Delete Cells shifting up (Rows) or left (Cols): range goes and the cells below
(right of) it move back by its height (width), within its columns (rows) only.
MoveToSheet
Cut-paste to another sheet; fully contained references follow the destination sheet too.
Trait Implementations§
impl StructuralPartialEq for Edit
Auto Trait Implementations§
impl Freeze for Edit
impl RefUnwindSafe for Edit
impl Send for Edit
impl Sync for Edit
impl Unpin for Edit
impl UnsafeUnpin for Edit
impl UnwindSafe for Edit
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