Struct prototty::Coord [] [src]

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

General purpose coordinate

Fields

Methods

impl Coord
[src]

[src]

Trait Implementations

impl Copy for Coord
[src]

impl Hash for Coord
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for Coord
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Coord
[src]

impl<T> From<T> for Coord where
    T: Into<[i32; 2]>, 
[src]

[src]

impl PartialEq<Coord> for Coord
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Add<Size> for Coord
[src]

[src]

impl<T> Add<T> for Coord where
    T: Into<Coord>, 
[src]

[src]

impl<'de> Deserialize<'de> for Coord
[src]

[src]

impl Debug for Coord
[src]

[src]

Formats the value using the given formatter.

impl<T> AddAssign<T> for Coord where
    T: Into<Coord>, 
[src]

[src]

impl Serialize for Coord
[src]

[src]

Serialize this value into the given Serde serializer. Read more

impl<T> SubAssign<T> for Coord where
    T: Into<Coord>, 
[src]

[src]

impl Sub<Size> for Coord
[src]

[src]

impl<T> Sub<T> for Coord where
    T: Into<Coord>, 
[src]

[src]

impl Default for Coord
[src]