[][src]Struct anes::MoveCursorToNextLine

pub struct MoveCursorToNextLine(pub u16);

Moves the cursor to beginning of line the given number of lines down.

Examples

use std::io::{stdout, Write};
use anes::MoveCursorToNextLine;

let mut stdout = stdout();
// Move cursor down by 2 rows and the move it to the first column
write!(stdout, "{}", MoveCursorToNextLine(2));

The previous example does the same thing as the following one:

use std::io::{stdout, Write};
use anes::{MoveCursorDown, MoveCursorToColumn};

let mut stdout = stdout();
write!(stdout, "{}{}", MoveCursorDown(2), MoveCursorToColumn(1));

Trait Implementations

impl Clone for MoveCursorToNextLine[src]

impl Copy for MoveCursorToNextLine[src]

impl Eq for MoveCursorToNextLine[src]

impl PartialEq<MoveCursorToNextLine> for MoveCursorToNextLine[src]

impl Display for MoveCursorToNextLine[src]

impl Debug for MoveCursorToNextLine[src]

impl Hash for MoveCursorToNextLine[src]

impl StructuralPartialEq for MoveCursorToNextLine[src]

impl StructuralEq for MoveCursorToNextLine[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]