Struct termion::cursor::Goto [] [src]

pub struct Goto(pub u16, pub u16);

Goto some position ((1,1)-based).

Why one-based?

ANSI escapes are very poorly designed, and one of the many odd aspects is being one-based. This can be quite strange at first, but it is not that big of an obstruction once you get used to it.

Trait Implementations

impl Eq for Goto
[src]

impl PartialEq for Goto
[src]

fn eq(&self, __arg_0: &Goto) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Goto) -> bool

This method tests for !=.

impl Clone for Goto
[src]

fn clone(&self) -> Goto

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Goto
[src]

impl Default for Goto
[src]

fn default() -> Goto

Returns the "default value" for a type. Read more

impl Display for Goto
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.