Struct prototty::Coord [] [src]

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

General purpose coordinate for use within prototty crates.

Fields

Methods

impl Coord
[src]

[src]

Trait Implementations

impl Debug for Coord
[src]

[src]

Formats the value using the given formatter.

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 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 PartialEq 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 Eq for Coord
[src]

impl Default for Coord
[src]

[src]

Returns the "default value" for a type. Read more

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

[src]

Performs the conversion.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Add<Size> for Coord
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Sub<Size> for Coord
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.