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
row: Row
The horizontal row (zero at the top)
col: Col
The vertical column (zero on the left)
Methods
impl Position
[src]
pub fn new(row: Row, col: Col) -> Position
[src]
Create a new position
pub fn origin() -> Position
[src]
Get the origin (0, 0)
Trait Implementations
impl Debug for Position
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more