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