[][src]Struct vga_framebuffer::Position

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]

impl Copy for Position[src]

impl Clone for Position[src]

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

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Unpin for Position

impl Sync for Position

impl Send for Position

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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]