pub enum CursorMove {
To(Position),
ToColumn(usize),
ToRow(usize),
By {
columns: i32,
rows: i32,
},
ToNextLine(usize),
ToPreviousLine(usize),
}Expand description
A cursor movement expressed independently of an escape-sequence API.
Variants§
Trait Implementations§
Source§impl Clone for CursorMove
impl Clone for CursorMove
Source§fn clone(&self) -> CursorMove
fn clone(&self) -> CursorMove
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 CursorMove
impl Debug for CursorMove
Source§impl Hash for CursorMove
impl Hash for CursorMove
Source§impl PartialEq for CursorMove
impl PartialEq for CursorMove
Source§fn eq(&self, other: &CursorMove) -> bool
fn eq(&self, other: &CursorMove) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CursorMove
impl Eq for CursorMove
impl StructuralPartialEq for CursorMove
Auto Trait Implementations§
impl Freeze for CursorMove
impl RefUnwindSafe for CursorMove
impl Send for CursorMove
impl Sync for CursorMove
impl Unpin for CursorMove
impl UnsafeUnpin for CursorMove
impl UnwindSafe for CursorMove
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