pub struct MoveCursorUp(pub u16);
Expand description
Moves the cursor up by the given number of rows.
§Examples
use std::io::{stdout, Write};
use anes::MoveCursorUp;
let mut stdout = stdout();
// Move cursor up by 5 rows
write!(stdout, "{}", MoveCursorUp(5));
Tuple Fields§
§0: u16
Trait Implementations§
Source§impl Clone for MoveCursorUp
impl Clone for MoveCursorUp
Source§fn clone(&self) -> MoveCursorUp
fn clone(&self) -> MoveCursorUp
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 MoveCursorUp
impl Debug for MoveCursorUp
Source§impl Display for MoveCursorUp
impl Display for MoveCursorUp
Source§impl Hash for MoveCursorUp
impl Hash for MoveCursorUp
Source§impl PartialEq for MoveCursorUp
impl PartialEq for MoveCursorUp
impl Copy for MoveCursorUp
impl Eq for MoveCursorUp
impl StructuralPartialEq for MoveCursorUp
Auto Trait Implementations§
impl Freeze for MoveCursorUp
impl RefUnwindSafe for MoveCursorUp
impl Send for MoveCursorUp
impl Sync for MoveCursorUp
impl Unpin for MoveCursorUp
impl UnwindSafe for MoveCursorUp
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: 2 bytes