Struct crossterm::cursor::MoveToPreviousLine
source · [−]pub struct MoveToPreviousLine(pub u16);
Expand description
A command that moves the terminal cursor up the given number of lines, and moves it to the first column.
Notes
Commands must be executed/queued for execution otherwise they do nothing.
Tuple Fields
0: u16
Trait Implementations
sourceimpl Clone for MoveToPreviousLine
impl Clone for MoveToPreviousLine
sourcefn clone(&self) -> MoveToPreviousLine
fn clone(&self) -> MoveToPreviousLine
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Command for MoveToPreviousLine
impl Command for MoveToPreviousLine
sourcefn write_ansi(&self, f: &mut impl Write) -> Result
fn write_ansi(&self, f: &mut impl Write) -> Result
Write an ANSI representation of this command to the given writer. An ANSI code can manipulate the terminal by writing it to the terminal buffer. However, only Windows 10 and UNIX systems support this. Read more
sourcefn execute_winapi(&self) -> Result<()>
fn execute_winapi(&self) -> Result<()>
Execute this command. Read more
sourcefn is_ansi_code_supported(&self) -> bool
fn is_ansi_code_supported(&self) -> bool
Returns whether the ANSI code representation of this command is supported by windows. Read more
sourceimpl Debug for MoveToPreviousLine
impl Debug for MoveToPreviousLine
sourceimpl Display for MoveToPreviousLine
impl Display for MoveToPreviousLine
sourceimpl PartialEq<MoveToPreviousLine> for MoveToPreviousLine
impl PartialEq<MoveToPreviousLine> for MoveToPreviousLine
sourcefn eq(&self, other: &MoveToPreviousLine) -> bool
fn eq(&self, other: &MoveToPreviousLine) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MoveToPreviousLine) -> bool
fn ne(&self, other: &MoveToPreviousLine) -> bool
This method tests for !=
.
impl Copy for MoveToPreviousLine
impl Eq for MoveToPreviousLine
impl StructuralEq for MoveToPreviousLine
impl StructuralPartialEq for MoveToPreviousLine
Auto Trait Implementations
impl RefUnwindSafe for MoveToPreviousLine
impl Send for MoveToPreviousLine
impl Sync for MoveToPreviousLine
impl Unpin for MoveToPreviousLine
impl UnwindSafe for MoveToPreviousLine
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more