pub enum Clear {
All,
FromCursorDown,
FromCursorUp,
CurrentLine,
UntilNewLine,
}
Expand description
Different ways to clear the terminal buffer.
Variants§
All
All cells.
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 Clear
impl Ord for Clear
Source§impl PartialOrd for Clear
impl PartialOrd for Clear
impl Copy for Clear
impl Eq for Clear
impl StructuralPartialEq for Clear
Auto Trait Implementations§
impl Freeze for Clear
impl RefUnwindSafe for Clear
impl Send for Clear
impl Sync for Clear
impl Unpin for Clear
impl UnwindSafe for Clear
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