pub enum TableEdit {
Cell {
row: usize,
column: usize,
text: String,
},
Paste {
row: usize,
column: usize,
cells: Vec<Vec<String>>,
},
AddRow,
RemoveRow {
row: usize,
},
MoveRow {
row: usize,
to: usize,
},
SelectRow {
row: usize,
},
Column {
column: usize,
text: String,
},
AddColumn,
RemoveColumn {
column: usize,
},
}Expand description
What is done to a super::Table, one thing at a time; rows and
columns are named by their index in the table as it was shown.
Variants§
Cell
The cell at row, column typed into.
Paste
A block of text pasted at row, column — from a spreadsheet, a
row of cells per line — filling the cells from there on, and adding
rows below the last for what runs over. An operation never sees
this: its form takes it apart into the rows added and the cells set
(see crate::edit_form::EditForm::table).
AddRow
A row added, after the last.
RemoveRow
MoveRow
The row row moved to be the row to.
SelectRow
The row chosen, of a table one row of which is.
Column
The header of the column column typed into.
AddColumn
A column added, after the last.
RemoveColumn
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TableEdit
impl<'de> Deserialize<'de> for TableEdit
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TableEdit
Auto Trait Implementations§
impl Freeze for TableEdit
impl RefUnwindSafe for TableEdit
impl Send for TableEdit
impl Sync for TableEdit
impl Unpin for TableEdit
impl UnsafeUnpin for TableEdit
impl UnwindSafe for TableEdit
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