Struct console_traits::Position[][src]

pub struct Position {
    pub row: Row,
    pub col: Col,
}

Describes a place on the screen. (0, 0) is the top left.

Fields

The horizontal row (zero at the top)

The vertical column (zero on the left)

Methods

impl Position
[src]

Create a new position

Get the origin (0, 0)

Trait Implementations

impl Debug for Position
[src]

Formats the value using the given formatter. Read more

impl Copy for Position
[src]

impl Clone for Position
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Position

impl Sync for Position