pub enum Motion {
Left,
Right,
Up,
Down,
FileStart,
FileEnd,
LineStart,
LineEnd,
WordStartBefore,
WordStartAfter,
WordEndAfter,
}Expand description
A navigation intent (motion) that transforms a document cursor.
Variants§
Left
Move left by one char.
Right
Move right by one char.
Up
Move up by one line.
Down
Move down by one line.
FileStart
Go to first line of file (gg).
FileEnd
Go to last line of file (G). Column is clamped to that line.
LineStart
Go to start of line (0-ish).
LineEnd
Go to end of line ($-ish), i.e. line_len_chars(line).
WordStartBefore
Move to start of previous word (b-ish).
WordStartAfter
Move to start of next word (w-ish).
WordEndAfter
Move to end of next word (e-ish).
Trait Implementations§
impl Copy for Motion
impl Eq 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 UnsafeUnpin 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