Enum endbasic_std::console::ClearType
source · [−]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 StructuralEq for ClearType
impl StructuralPartialEq for ClearType
Auto Trait Implementations
impl RefUnwindSafe for ClearType
impl Send for ClearType
impl Sync for ClearType
impl Unpin for ClearType
impl UnwindSafe for ClearType
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