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
x: T
y: T
Trait Implementations
impl<T> Clone for Coordinate<T> where
T: Clone + CoordinateType, [src]
impl<T> Clone for Coordinate<T> where
T: Clone + CoordinateType, fn clone(&self) -> Coordinate<T>[src]
fn clone(&self) -> Coordinate<T>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<T> Debug for Coordinate<T> where
T: Debug + CoordinateType, [src]
impl<T> Debug for Coordinate<T> where
T: Debug + CoordinateType, fn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl<T> Copy for Coordinate<T> where
T: Copy + CoordinateType, [src]
impl<T> Copy for Coordinate<T> where
T: Copy + CoordinateType, impl<T> PartialEq<Coordinate<T>> for Coordinate<T> where
T: PartialEq<T> + CoordinateType, [src]
impl<T> PartialEq<Coordinate<T>> for Coordinate<T> where
T: PartialEq<T> + CoordinateType, fn eq(&self, other: &Coordinate<T>) -> bool[src]
fn eq(&self, other: &Coordinate<T>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Coordinate<T>) -> bool[src]
fn ne(&self, other: &Coordinate<T>) -> boolThis method tests for !=.
impl<T> From<[T; 2]> for Coordinate<T> where
T: CoordinateType, [src]
impl<T> From<[T; 2]> for Coordinate<T> where
T: CoordinateType, fn from(coords: [T; 2]) -> Coordinate<T>[src]
fn from(coords: [T; 2]) -> Coordinate<T>Performs the conversion.
impl<T> From<(T, T)> for Coordinate<T> where
T: CoordinateType, [src]
impl<T> From<(T, T)> for Coordinate<T> where
T: CoordinateType, fn from(coords: (T, T)) -> Coordinate<T>[src]
fn from(coords: (T, T)) -> Coordinate<T>Performs the conversion.
impl<T> From<Coordinate<T>> for Point<T> where
T: CoordinateType, [src]
impl<T> From<Coordinate<T>> for Point<T> where
T: CoordinateType, fn from(x: Coordinate<T>) -> Point<T>[src]
fn from(x: Coordinate<T>) -> Point<T>Performs the conversion.
Auto Trait Implementations
impl<T> Send for Coordinate<T> where
T: Send,
impl<T> Send for Coordinate<T> where
T: Send, impl<T> Sync for Coordinate<T> where
T: Sync,
impl<T> Sync for Coordinate<T> where
T: Sync,