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<'de, T> Deserialize<'de> for Coordinate<T> where
T: CoordinateType + Deserialize<'de>,
[src]
T: CoordinateType + Deserialize<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Coordinate<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Coordinate<T>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T> Serialize for Coordinate<T> where
T: CoordinateType + Serialize,
[src]
T: CoordinateType + Serialize,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<T> Copy for Coordinate<T> where
T: Copy + CoordinateType,
[src]
T: Copy + CoordinateType,
impl<T> PartialEq<Coordinate<T>> for Coordinate<T> where
T: PartialEq<T> + CoordinateType,
[src]
T: PartialEq<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> From<(T, T)> for Coordinate<T> where
T: CoordinateType,
[src]
T: CoordinateType,
fn from(coords: (T, T)) -> Coordinate<T>
[src]
Performs the conversion.
impl<T> From<Coordinate<T>> for Point<T> where
T: CoordinateType,
[src]
T: CoordinateType,
fn from(x: Coordinate<T>) -> Point<T>
[src]
Performs the conversion.
impl<T> Clone for Coordinate<T> where
T: Clone + CoordinateType,
[src]
T: Clone + 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> Debug for Coordinate<T> where
T: Debug + CoordinateType,
[src]
T: Debug + CoordinateType,
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,