pub enum Binding<Message> {
}Expand description
A binding to an action in the Editor.
Variants§
Unfocus
Unfocus the Editor.
Copy
Copy the selection of the Editor.
Cut
Cut the selection of the Editor.
Paste
Paste the clipboard contents in the Editor.
Undo
Undo the last change peformed in the Editor.
Redo
Redo the last change undone in the Editor.
Move(Motion)
Apply a Motion.
Select(Motion)
Select text with a given Motion.
SelectWord
Select the word at the current cursor.
SelectLine
Select the line at the current cursor.
SelectAll
Select the entire buffer.
Insert(char)
Insert the given character.
Enter
Break the current line.
Backspace
Delete the previous character.
BackspaceWord
Delete the word before the cursor.
BackspaceLine
Delete the line before the cursor.
Delete
Delete the next character.
DeleteWord
Delete the word after the cursor.
DeleteLine
Delete the line after the cursor.
Sequence(Vec<Self>)
A sequence of bindings to execute.
Custom(Message)
Produce the given message.
Implementations§
Trait Implementations§
impl<Message> StructuralPartialEq for Binding<Message>
Auto Trait Implementations§
impl<Message> Freeze for Binding<Message>where
Message: Freeze,
impl<Message> RefUnwindSafe for Binding<Message>where
Message: RefUnwindSafe,
impl<Message> Send for Binding<Message>where
Message: Send,
impl<Message> Sync for Binding<Message>where
Message: Sync,
impl<Message> Unpin for Binding<Message>where
Message: Unpin,
impl<Message> UnsafeUnpin for Binding<Message>where
Message: UnsafeUnpin,
impl<Message> UnwindSafe for Binding<Message>where
Message: UnwindSafe,
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