pub enum EditType {
Other,
InsertChars,
InsertNewline,
Indent,
Delete,
Undo,
Redo,
Transpose,
Surround,
}
Variants§
Other
A catchall for edits that don’t fit elsewhere, and which should always have their own undo groups; used for things like cut/copy/paste.
InsertChars
An insert from the keyboard/IME (not a paste or a yank).
InsertNewline
Indent
An indentation adjustment.
Delete
Undo
Redo
Transpose
Surround
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EditType
impl<'de> Deserialize<'de> for EditType
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 Copy for EditType
impl Eq for EditType
impl StructuralPartialEq for EditType
Auto Trait Implementations§
impl Freeze for EditType
impl RefUnwindSafe for EditType
impl Send for EditType
impl Sync for EditType
impl Unpin for EditType
impl UnwindSafe for EditType
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