pub enum ClearLine {
Right,
Left,
All,
}
Expand description
Clears part of the line.
§Examples
use std::io::{stdout, Write};
use anes::ClearLine;
let mut stdout = stdout();
// Clear the whole line
write!(stdout, "{}", ClearLine::All);
Variants§
Right
Clears from the cursor position to end of the line.
Left
Clears from the cursor position to beginning of the line.
All
Clears the whole line.
Trait Implementations§
impl Copy for ClearLine
impl Eq for ClearLine
impl StructuralPartialEq for ClearLine
Auto Trait Implementations§
impl Freeze for ClearLine
impl RefUnwindSafe for ClearLine
impl Send for ClearLine
impl Sync for ClearLine
impl Unpin for ClearLine
impl UnwindSafe for ClearLine
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
Right
: 0 bytesLeft
: 0 bytesAll
: 0 bytes