pub enum ClearBuffer {
Below,
Above,
All,
SavedLines,
}
Expand description
Clears part of the buffer.
§Examples
use std::io::{stdout, Write};
use anes::ClearBuffer;
let mut stdout = stdout();
// Clear the entire buffer
write!(stdout, "{}", ClearBuffer::All);
Variants§
Below
Clears from the cursor position to end of the screen.
Above
Clears from the cursor position to beginning of the screen.
All
Clears the entire buffer.
SavedLines
Clears the entire buffer and all saved lines in the scrollback buffer.
Trait Implementations§
Source§impl Clone for ClearBuffer
impl Clone for ClearBuffer
Source§fn clone(&self) -> ClearBuffer
fn clone(&self) -> ClearBuffer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ClearBuffer
impl Debug for ClearBuffer
Source§impl Display for ClearBuffer
impl Display for ClearBuffer
Source§impl Hash for ClearBuffer
impl Hash for ClearBuffer
Source§impl PartialEq for ClearBuffer
impl PartialEq for ClearBuffer
impl Copy for ClearBuffer
impl Eq for ClearBuffer
impl StructuralPartialEq for ClearBuffer
Auto Trait Implementations§
impl Freeze for ClearBuffer
impl RefUnwindSafe for ClearBuffer
impl Send for ClearBuffer
impl Sync for ClearBuffer
impl Unpin for ClearBuffer
impl UnwindSafe for ClearBuffer
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:
Below
: 0 bytesAbove
: 0 bytesAll
: 0 bytesSavedLines
: 0 bytes