Struct geo::Coordinate [] [src]

pub struct Coordinate<T> where
    T: CoordinateType
{ pub x: T, pub y: T, }

A primitive type which holds x and y position information

Fields

Trait Implementations

impl<'de, T> Deserialize<'de> for Coordinate<T> where
    T: CoordinateType + Deserialize<'de>, 
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

impl<T> Serialize for Coordinate<T> where
    T: CoordinateType + Serialize
[src]

[src]

Serialize this value into the given Serde serializer. Read more

impl<T> Copy for Coordinate<T> where
    T: Copy + CoordinateType
[src]

impl<T> PartialEq<Coordinate<T>> for Coordinate<T> where
    T: PartialEq<T> + CoordinateType
[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<T> From<(T, T)> for Coordinate<T> where
    T: CoordinateType
[src]

[src]

Performs the conversion.

impl<T> From<Coordinate<T>> for Point<T> where
    T: CoordinateType
[src]

[src]

Performs the conversion.

impl<T> Clone for Coordinate<T> where
    T: Clone + CoordinateType
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T> Debug for Coordinate<T> where
    T: Debug + CoordinateType
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<T> Send for Coordinate<T> where
    T: Send

impl<T> Sync for Coordinate<T> where
    T: Sync