Enum Movement
#[non_exhaustive]
pub enum Movement
Where to move
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
impl Clone for Movement
fn clone(&self) -> Movement
impl Debug for Movement
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Movement
impl PartialEq for Movement
fn eq(&self, other: &Movement) -> bool
impl StructuralPartialEq for Movement
Auto Trait Implementations
impl Freeze for Movement
impl RefUnwindSafe for Movement
impl Send for Movement
impl Sync for Movement
impl Unpin for Movement
impl UnsafeUnpin for Movement
impl UnwindSafe for Movement
Blanket Implementations
impl<T> Any for Movement
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Movement
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Movement
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Movement
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Movement
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Movement
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Movement
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Movement
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Movement
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>