Enum rustyline::Movement [−][src]
#[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.
Whole current line (not really a movement but a range)
beginning-of-line
end-of-line
backward-word, vi-prev-word
Tuple Fields of BackwardWord
0: RepeatCount1: Wordforward-word, vi-end-word, vi-next-word
Tuple Fields of ForwardWord
vi-char-search
Tuple Fields of ViCharSearch
0: RepeatCount1: CharSearchvi-first-print
backward-char
Tuple Fields of BackwardChar
0: RepeatCountforward-char
Tuple Fields of ForwardChar
0: RepeatCountmove to the same column on the previous line
Tuple Fields of LineUp
0: RepeatCountmove to the same column on the next line
Tuple Fields of LineDown
0: RepeatCountWhole user input (not really a movement but a range)
beginning-of-buffer
end-of-buffer
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Movement
impl UnwindSafe for Movement
Blanket Implementations
Mutably borrows from an owned value. Read more