pub enum Motion {
}Variants§
Left
One grapheme cluster.
Right
WordLeft
WordRight
Home
Smart home: first non-blank of the line, or column 0 if already there.
LineStart
LineEnd
RowHome
Home with word wrap: to the start of the caret’s display row, or
Home when already there or on a line’s first row. Without wrap it
is Home.
RowEnd
End with word wrap: to the end of the caret’s display row, or the
line end when already there. Without wrap it is LineEnd.
DocStart
DocEnd
Up
Vertical moves keep a remembered visual column.
Down
PageUp(usize)
Page moves by the given number of lines (the view’s page height).
PageDown(usize)
Trait Implementations§
impl Copy for Motion
Source§impl<'de> Deserialize<'de> for Motion
impl<'de> Deserialize<'de> for Motion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Motion
impl StructuralPartialEq for Motion
Auto Trait Implementations§
impl Freeze for Motion
impl RefUnwindSafe for Motion
impl Send for Motion
impl Sync for Motion
impl Unpin for Motion
impl UnsafeUnpin for Motion
impl UnwindSafe for Motion
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