Struct direction::Coord [] [src]

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

General purpose coordinate

Fields

Methods

impl Coord
[src]

[src]

Trait Implementations

impl<'a> Sub<&'a Coord> for Size
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Sub<Coord> for Size
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a, 'b> Sub<&'a Coord> for &'b 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.

impl<'a, 'b> Sub<&'a Size> for &'b Coord
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Sub<Coord> for Coord
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a, 'b> Sub<&'a Coord> for &'b Size
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a> Sub<&'a Size> for Coord
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a> Sub<Coord> for &'a Size
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a> Sub<&'a Coord> for Coord
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a> Sub<Size> for &'a Coord
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<'a> Sub<Coord> for &'a Coord
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl Mul<i32> for Coord
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<'a> Mul<i32> for &'a Coord
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl Copy for Coord
[src]

impl<T> SubAssign<T> for Coord where
    Coord: Sub<T>,
    <Coord as Sub<T>>::Output == Coord
[src]

[src]

Performs the -= operation.

impl<'a> Div<i32> for &'a Coord
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl Div<i32> for Coord
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

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

[src]

Deserialize this value from the given Serde deserializer. Read more

impl<T> AddAssign<T> for Coord where
    Coord: Add<T>,
    <Coord as Add<T>>::Output == Coord
[src]

[src]

Performs the += operation.

impl<T> DivAssign<T> for Coord where
    Coord: Div<T>,
    <Coord as Div<T>>::Output == Coord
[src]

[src]

Performs the /= operation.

impl Eq 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<T> MulAssign<T> for Coord where
    Coord: Mul<T>,
    <Coord as Mul<T>>::Output == Coord
[src]

[src]

Performs the *= operation.

impl Serialize for Coord
[src]

[src]

Serialize this value into the given Serde serializer. Read more

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 From<(i32, i32)> for Coord
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

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 Add<Coord> for Size
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a> Add<Coord> for &'a Coord
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a> Add<&'a Coord> for Size
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a, 'b> Add<&'a Size> for &'b 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<'a> Add<Coord> for &'a Size
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a, 'b> Add<&'a Coord> for &'b Size
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a, 'b> Add<&'a Coord> for &'b Coord
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a> Add<&'a Coord> for Coord
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a> Add<&'a Size> for Coord
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Add<Coord> for Coord
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl<'a> Add<Size> for &'a Coord
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl Debug for Coord
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for Coord
[src]

[src]

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

Auto Trait Implementations

impl Send for Coord

impl Sync for Coord