pub enum Binding<Message> {
}Expand description
A binding to an action in the TextEditor.
Variants§
Unfocus
Unfocus the TextEditor.
Copy
Copy the selection of the TextEditor.
Cut
Cut the selection of the TextEditor.
Paste
Paste the clipboard contents in the TextEditor.
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.
Delete
Delete the next character.
Undo
Undo the last editing action.
Redo
Redo a previously undone editing action.
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