pub enum ClearType {
All,
CurrentLine,
PreviousChar,
UntilNewLine,
}
Expand description
Indicates what part of the console to clear on a Console::clear()
call.
Variants§
All
Clears the whole console and moves the cursor to the top left corner.
CurrentLine
Clears only the current line without moving the cursor.
PreviousChar
Clears the previous character.
UntilNewLine
Clears from the cursor position to the end of the line without moving the cursor.
Trait Implementations§
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