pub enum Action {
Insert {
start: usize,
text: String,
},
Remove {
start: usize,
text: String,
},
Noop {
start: usize,
},
StartGroup,
EndGroup,
}
Expand description
A modification performed on a Buffer
. These are used for the purpose of undo/redo.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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