pub enum Edit {
Insert(char),
Paste(Arc<String>),
Enter,
Indent,
Unindent,
Backspace,
Delete,
}
Expand description
An action that edits text.
Variants§
Insert(char)
Insert the given character.
Paste(Arc<String>)
Paste the given text.
Enter
Break the current line.
Indent
Indent the current line.
Unindent
Unindent the current line.
Backspace
Delete the previous character.
Delete
Delete the next character.
Trait Implementations§
impl StructuralPartialEq for Edit
Auto Trait Implementations§
impl Freeze for Edit
impl RefUnwindSafe for Edit
impl Send for Edit
impl Sync for Edit
impl Unpin for Edit
impl UnwindSafe for Edit
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