#[non_exhaustive]pub enum Movement {
Show 14 variants
WholeLine,
BeginningOfLine,
EndOfLine,
BackwardWord(RepeatCount, Word),
ForwardWord(RepeatCount, At, Word),
ViCharSearch(RepeatCount, CharSearch),
ViFirstPrint,
BackwardChar(RepeatCount),
ForwardChar(RepeatCount),
LineUp(RepeatCount),
LineDown(RepeatCount),
WholeBuffer,
BeginningOfBuffer,
EndOfBuffer,
}
Expand description
Where to move
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
WholeLine
Whole current line (not really a movement but a range)
BeginningOfLine
beginning-of-line
EndOfLine
end-of-line
BackwardWord(RepeatCount, Word)
backward-word, vi-prev-word
ForwardWord(RepeatCount, At, Word)
forward-word, vi-end-word, vi-next-word
ViCharSearch(RepeatCount, CharSearch)
character-search, character-search-backward, vi-char-search
ViFirstPrint
vi-first-print
BackwardChar(RepeatCount)
backward-char
ForwardChar(RepeatCount)
forward-char
LineUp(RepeatCount)
move to the same column on the previous line
LineDown(RepeatCount)
move to the same column on the next line
WholeBuffer
Whole user input (not really a movement but a range)
BeginningOfBuffer
beginning-of-buffer
EndOfBuffer
end-of-buffer
Trait Implementations§
source§impl PartialEq for Movement
impl PartialEq for Movement
impl Eq for Movement
impl StructuralEq for Movement
impl StructuralPartialEq for Movement
Auto Trait Implementations§
impl RefUnwindSafe for Movement
impl Send for Movement
impl Sync for Movement
impl Unpin for Movement
impl UnwindSafe for Movement
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