pub enum UndoActionKind {
InsertChar,
Paste,
Backspace,
Delete,
DeleteWord,
Cut,
Other,
}Expand description
Identifies what kind of edit an undo entry was, for grouping consecutive similar edits.
Variants§
InsertChar
Inserting a single character (consecutive inserts are grouped).
Paste
Inserting text from paste (not grouped).
Backspace
Deleting via Backspace (consecutive deletes are grouped).
Delete
Deleting via Delete key (consecutive deletes are grouped).
DeleteWord
Deleting a word (not grouped).
Cut
Cutting selected text (not grouped).
Other
Any other discrete change (not grouped).
Trait Implementations§
Source§impl Clone for UndoActionKind
impl Clone for UndoActionKind
Source§fn clone(&self) -> UndoActionKind
fn clone(&self) -> UndoActionKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UndoActionKind
impl Debug for UndoActionKind
Source§impl PartialEq for UndoActionKind
impl PartialEq for UndoActionKind
impl Copy for UndoActionKind
impl Eq for UndoActionKind
impl StructuralPartialEq for UndoActionKind
Auto Trait Implementations§
impl Freeze for UndoActionKind
impl RefUnwindSafe for UndoActionKind
impl Send for UndoActionKind
impl Sync for UndoActionKind
impl Unpin for UndoActionKind
impl UnsafeUnpin for UndoActionKind
impl UnwindSafe for UndoActionKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.