pub enum ClearType {
All,
Purge,
FromCursorDown,
FromCursorUp,
CurrentLine,
UntilNewLine,
}
Expand description
Different ways to clear the terminal buffer.
Variants§
All
All cells.
Purge
All plus history
FromCursorDown
All cells from the cursor position downwards.
FromCursorUp
All cells from the cursor position upwards.
CurrentLine
All cells at the cursor row.
UntilNewLine
All cells from the cursor position until the new line.
Trait Implementations§
source§impl Ord for ClearType
impl Ord for ClearType
source§impl PartialEq for ClearType
impl PartialEq for ClearType
source§impl PartialOrd for ClearType
impl PartialOrd for ClearType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ClearType
impl Eq for ClearType
impl StructuralPartialEq for ClearType
Auto Trait Implementations§
impl Freeze for ClearType
impl RefUnwindSafe for ClearType
impl Send for ClearType
impl Sync for ClearType
impl Unpin for ClearType
impl UnwindSafe for ClearType
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