Struct geohash::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<T> Clone for Coordinate<T> where
    T: Clone + CoordinateType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. 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]

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

This method tests for !=.

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

Performs the conversion.

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

Performs the conversion.

impl<T> From<(T, T)> for Coordinate<T> where
    T: CoordinateType
[src]

Performs the conversion.

Auto Trait Implementations

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

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