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.
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)
vi-char-search
ViFirstPrint
vi-first-print
BackwardChar(RepeatCount)
Tuple Fields
0: RepeatCount
backward-char
ForwardChar(RepeatCount)
Tuple Fields
0: RepeatCount
forward-char
LineUp(RepeatCount)
Tuple Fields
0: RepeatCount
move to the same column on the previous line
LineDown(RepeatCount)
Tuple Fields
0: 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
Auto Trait Implementations
impl RefUnwindSafe for Movement
impl UnwindSafe for Movement
Blanket Implementations
Mutably borrows from an owned value. Read more