pub enum MoveOperation {
Show 25 variants
NoMove,
Start,
End,
StartOfLine,
EndOfLine,
StartOfBlock,
EndOfBlock,
StartOfWord,
EndOfWord,
PreviousBlock,
NextBlock,
PreviousCharacter,
NextCharacter,
PreviousWord,
NextWord,
Up,
Down,
Left,
Right,
WordLeft,
WordRight,
StartOfSentence,
EndOfSentence,
PreviousSentence,
NextSentence,
}Expand description
Semantic cursor movement operations.
Variants§
NoMove
Start
End
StartOfLine
EndOfLine
StartOfBlock
EndOfBlock
StartOfWord
EndOfWord
PreviousBlock
NextBlock
PreviousCharacter
NextCharacter
PreviousWord
NextWord
Up
Down
Left
Right
WordLeft
WordRight
StartOfSentence
The start of the sentence the cursor is in. Already there → the previous sentence’s start, so repeating it walks backwards.
EndOfSentence
The end of the sentence the cursor is in, at its terminator rather than at the space after it. Already there → the next sentence’s end.
PreviousSentence
The start of the previous sentence — StartOfSentence applied
from just before the current one.
NextSentence
The start of the next sentence.
Trait Implementations§
Source§impl Clone for MoveOperation
impl Clone for MoveOperation
Source§fn clone(&self) -> MoveOperation
fn clone(&self) -> MoveOperation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MoveOperation
Source§impl Debug for MoveOperation
impl Debug for MoveOperation
impl Eq for MoveOperation
Source§impl PartialEq for MoveOperation
impl PartialEq for MoveOperation
impl StructuralPartialEq for MoveOperation
Auto Trait Implementations§
impl Freeze for MoveOperation
impl RefUnwindSafe for MoveOperation
impl Send for MoveOperation
impl Sync for MoveOperation
impl Unpin for MoveOperation
impl UnsafeUnpin for MoveOperation
impl UnwindSafe for MoveOperation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.