Struct crossterm::terminal::ScrollDown
source · [−]pub struct ScrollDown(pub u16);
Expand description
A command that scrolls the terminal screen a given number of rows down.
Notes
Commands must be executed/queued for execution otherwise they do nothing.
Tuple Fields
0: u16
Trait Implementations
sourceimpl Clone for ScrollDown
impl Clone for ScrollDown
sourcefn clone(&self) -> ScrollDown
fn clone(&self) -> ScrollDown
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 ScrollDown
impl Command for ScrollDown
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 ScrollDown
impl Debug for ScrollDown
sourceimpl Display for ScrollDown
impl Display for ScrollDown
sourceimpl PartialEq<ScrollDown> for ScrollDown
impl PartialEq<ScrollDown> for ScrollDown
sourcefn eq(&self, other: &ScrollDown) -> bool
fn eq(&self, other: &ScrollDown) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ScrollDown) -> bool
fn ne(&self, other: &ScrollDown) -> bool
This method tests for !=
.
impl Copy for ScrollDown
impl Eq for ScrollDown
impl StructuralEq for ScrollDown
impl StructuralPartialEq for ScrollDown
Auto Trait Implementations
impl RefUnwindSafe for ScrollDown
impl Send for ScrollDown
impl Sync for ScrollDown
impl Unpin for ScrollDown
impl UnwindSafe for ScrollDown
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