[][src]Struct crossterm_winapi::Coord

pub struct Coord {
    pub x: i16,
    pub y: i16,
}

This is type represents the position of something on a certain 'x' and 'y'.

Fields

x: i16

the position on the x axis

y: i16

the position on the y axis

Methods

impl Coord[src]

pub fn new(x: i16, y: i16) -> Coord[src]

Create a new size instance by passing in the width and height.

Trait Implementations

impl Into<(u16, u16)> for Coord[src]

impl From<COORD> for Coord[src]

impl From<Coord> for COORD[src]

impl Clone for Coord[src]

impl Copy for Coord[src]

impl Default for Coord[src]

impl Eq for Coord[src]

impl PartialEq<Coord> for Coord[src]

impl PartialOrd<Coord> for Coord[src]

impl Debug for Coord[src]

impl StructuralPartialEq for Coord[src]

impl StructuralEq for Coord[src]

Auto Trait Implementations

impl Send for Coord

impl Sync for Coord

impl Unpin for Coord

impl UnwindSafe for Coord

impl RefUnwindSafe for Coord

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> 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]