pub struct SwitchBufferToAlternate;
Expand description
Switches to the alternate buffer.
Use the SwitchBufferToNormal
sequence to switch
back to the normal buffer.
§Examples
use std::io::{stdout, Write};
use anes::{SwitchBufferToAlternate, SwitchBufferToNormal};
let mut stdout = stdout();
write!(stdout, "{}", SwitchBufferToAlternate);
// Your app on alternate screen
write!(stdout, "{}", SwitchBufferToNormal);
Trait Implementations§
Source§impl Clone for SwitchBufferToAlternate
impl Clone for SwitchBufferToAlternate
Source§fn clone(&self) -> SwitchBufferToAlternate
fn clone(&self) -> SwitchBufferToAlternate
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 SwitchBufferToAlternate
impl Debug for SwitchBufferToAlternate
Source§impl Display for SwitchBufferToAlternate
impl Display for SwitchBufferToAlternate
Source§impl Hash for SwitchBufferToAlternate
impl Hash for SwitchBufferToAlternate
Source§impl PartialEq for SwitchBufferToAlternate
impl PartialEq for SwitchBufferToAlternate
impl Copy for SwitchBufferToAlternate
impl Eq for SwitchBufferToAlternate
impl StructuralPartialEq for SwitchBufferToAlternate
Auto Trait Implementations§
impl Freeze for SwitchBufferToAlternate
impl RefUnwindSafe for SwitchBufferToAlternate
impl Send for SwitchBufferToAlternate
impl Sync for SwitchBufferToAlternate
impl Unpin for SwitchBufferToAlternate
impl UnwindSafe for SwitchBufferToAlternate
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: 0 bytes