Enum kaolinite::event::Event [−][src]
pub enum Event { Insert(Loc, char), Remove(Loc, char), InsertRow(usize, String), RemoveRow(usize, String), SplitDown(Loc), SpliceUp(Loc), }
Expand description
Event represents all the document events that could occur
Variants
Insert a character at a position. Takes a location and a character to insert
Remove a character at a position. Takes a location and the character that has been removed.
Insert a row. Takes a row index and a string for the row.
Remove a row. Takes a row index and a string for the row.
SplitDown(Loc)
Cut a line in half and drop the last half down a line. This is for times when the enter key is pressed in the middle of a line.
SpliceUp(Loc)
Splice a line with the line above. This is for times when the backspace key is pressed at the start of a line.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl UnwindSafe for Event
Blanket Implementations
Mutably borrows from an owned value. Read more