pub struct RestoreCursorPosition;
Expand description
Restores the cursor position.
Use the SaveCursorPosition
sequence to
save the cursor position.
§Examples
use std::io::{stdout, Write};
use anes::{SaveCursorPosition, RestoreCursorPosition};
let mut stdout = stdout();
// Save cursor position
write!(stdout, "{}", SaveCursorPosition);
// Your app
// Restore cursor position
write!(stdout, "{}", RestoreCursorPosition);
Trait Implementations§
Source§impl Clone for RestoreCursorPosition
impl Clone for RestoreCursorPosition
Source§fn clone(&self) -> RestoreCursorPosition
fn clone(&self) -> RestoreCursorPosition
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 RestoreCursorPosition
impl Debug for RestoreCursorPosition
Source§impl Display for RestoreCursorPosition
impl Display for RestoreCursorPosition
Source§impl Hash for RestoreCursorPosition
impl Hash for RestoreCursorPosition
Source§impl PartialEq for RestoreCursorPosition
impl PartialEq for RestoreCursorPosition
impl Copy for RestoreCursorPosition
impl Eq for RestoreCursorPosition
impl StructuralPartialEq for RestoreCursorPosition
Auto Trait Implementations§
impl Freeze for RestoreCursorPosition
impl RefUnwindSafe for RestoreCursorPosition
impl Send for RestoreCursorPosition
impl Sync for RestoreCursorPosition
impl Unpin for RestoreCursorPosition
impl UnwindSafe for RestoreCursorPosition
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