Enum text_terminal::ScrollAction
source · pub enum ScrollAction {
None,
Up(usize),
Down(usize),
}
Expand description
A pending action to scroll the screen up or down by a number of rows.
Variants§
None
Do nothing, do not scroll the screen.
Up(usize)
Scroll the screen up by the included number of lines.
Down(usize)
Scroll the screen down by the included number of lines.
Trait Implementations§
source§impl Clone for ScrollAction
impl Clone for ScrollAction
source§fn clone(&self) -> ScrollAction
fn clone(&self) -> ScrollAction
Returns a copy 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 ScrollAction
impl Debug for ScrollAction
source§impl Drop for ScrollAction
impl Drop for ScrollAction
source§impl PartialEq<ScrollAction> for ScrollAction
impl PartialEq<ScrollAction> for ScrollAction
source§fn eq(&self, other: &ScrollAction) -> bool
fn eq(&self, other: &ScrollAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ScrollAction
impl StructuralEq for ScrollAction
impl StructuralPartialEq for ScrollAction
Auto Trait Implementations§
impl RefUnwindSafe for ScrollAction
impl Send for ScrollAction
impl Sync for ScrollAction
impl Unpin for ScrollAction
impl UnwindSafe for ScrollAction
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