pub enum CursorMotion {
CharLeft,
CharRight,
WordLeft,
WordRight,
LineStart,
LineEnd,
LineUp,
LineDown,
DocStart,
DocEnd,
}Expand description
Single-axis cursor motion (mirrors QTextCursor::movePosition + GTK
GtkMovementStep).
Variants§
CharLeft
One extended grapheme cluster left.
CharRight
One extended grapheme cluster right.
WordLeft
Previous word boundary.
WordRight
Next word boundary.
LineStart
Start of current line.
LineEnd
End of current line.
LineUp
Up one visual line (multi-line buffers).
LineDown
Down one visual line.
DocStart
Start of document.
DocEnd
End of document.
Trait Implementations§
Source§impl Clone for CursorMotion
impl Clone for CursorMotion
Source§fn clone(&self) -> CursorMotion
fn clone(&self) -> CursorMotion
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 moreSource§impl Debug for CursorMotion
impl Debug for CursorMotion
impl Copy for CursorMotion
Auto Trait Implementations§
impl Freeze for CursorMotion
impl RefUnwindSafe for CursorMotion
impl Send for CursorMotion
impl Sync for CursorMotion
impl Unpin for CursorMotion
impl UnsafeUnpin for CursorMotion
impl UnwindSafe for CursorMotion
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,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.