pub enum Action {
Move(Motion),
Select(Motion),
SelectWord,
SelectLine,
SelectAll,
Edit(Edit),
Click(Point),
Drag(Point),
Scroll {
lines: i32,
},
}
Expand description
An interaction with an Editor
.
Variants§
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.
Edit(Edit)
Perform an Edit
.
Click(Point)
Drag(Point)
Scroll
Scroll the Editor
a certain amount of lines.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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