#[repr(C)]pub enum CursorMovement {
Left = 0,
Right = 1,
Up = 2,
Down = 3,
WordLeft = 4,
WordRight = 5,
LineStart = 6,
LineEnd = 7,
DocumentStart = 8,
DocumentEnd = 9,
Absolute = 10,
}Expand description
Type of cursor movement
Variants§
Left = 0
Move left one character
Right = 1
Move right one character
Up = 2
Move up one line
Down = 3
Move down one line
WordLeft = 4
Jump to previous word boundary
WordRight = 5
Jump to next word boundary
LineStart = 6
Jump to start of line
LineEnd = 7
Jump to end of line
DocumentStart = 8
Jump to start of document
DocumentEnd = 9
Jump to end of document
Absolute = 10
Absolute position (not relative)
Trait Implementations§
Source§impl Clone for CursorMovement
impl Clone for CursorMovement
Source§fn clone(&self) -> CursorMovement
fn clone(&self) -> CursorMovement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CursorMovement
impl Debug for CursorMovement
Source§impl PartialEq for CursorMovement
impl PartialEq for CursorMovement
impl Copy for CursorMovement
impl Eq for CursorMovement
impl StructuralPartialEq for CursorMovement
Auto Trait Implementations§
impl Freeze for CursorMovement
impl RefUnwindSafe for CursorMovement
impl Send for CursorMovement
impl Sync for CursorMovement
impl Unpin for CursorMovement
impl UnwindSafe for CursorMovement
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more