pub enum Action {
Move(Motion),
Select(Motion),
SelectWord,
SelectLine,
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.
Edit(Edit)
Perform an Edit
.
Click(Point)
Drag(Point)
Scroll
Scroll the Editor
a certain amount of lines.
Implementations§
Trait Implementations§
source§impl PartialEq for Action
impl PartialEq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
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