pub enum Motion {
Left,
Right,
Up,
Down,
WordLeft,
WordRight,
Home,
End,
PageUp,
PageDown,
DocumentStart,
DocumentEnd,
}
Expand description
A cursor movement.
Variants§
Left
Move left.
Right
Move right.
Up
Move up.
Down
Move down.
WordLeft
Move to the left boundary of a word.
WordRight
Move to the right boundary of a word.
Home
Move to the start of the line.
End
Move to the end of the line.
PageUp
Move to the start of the previous window.
PageDown
Move to the start of the next window.
DocumentStart
Move to the start of the text.
DocumentEnd
Move to the end of the text.
Implementations§
Trait Implementations§
impl Copy for Motion
impl StructuralPartialEq for Motion
Auto Trait Implementations§
impl Freeze for Motion
impl RefUnwindSafe for Motion
impl Send for Motion
impl Sync for Motion
impl Unpin for Motion
impl UnwindSafe for Motion
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