Struct console_traits::Position [−][src]
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]
impl Position
pub fn new(row: Row, col: Col) -> Position
[src]
pub fn new(row: Row, col: Col) -> Position
Create a new position
pub fn origin() -> Position
[src]
pub fn origin() -> Position
Get the origin (0, 0)
Trait Implementations
impl Debug for Position
[src]
impl Debug for Position
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for Position
[src]
impl Copy for Position
impl Clone for Position
[src]
impl Clone for Position