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§
source§impl PartialEq for ClearType
impl PartialEq 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)