pub struct Coordinates {
pub latitude: f64,
pub longitude: f64,
}
Expand description
Latitude and longitude coordinates.
Fields§
§latitude: f64
The latitude of the coordinate expressed in degrees.
longitude: f64
The longitude of the coordinate expressed in degrees.
Trait Implementations§
Source§impl Clone for Coordinates
impl Clone for Coordinates
Source§fn clone(&self) -> Coordinates
fn clone(&self) -> Coordinates
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Coordinates
impl Debug for Coordinates
Source§impl Default for Coordinates
impl Default for Coordinates
Source§fn default() -> Coordinates
fn default() -> Coordinates
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Coordinates
impl<'de> Deserialize<'de> for Coordinates
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Coordinates
impl PartialEq for Coordinates
Source§impl Serialize for Coordinates
impl Serialize for Coordinates
impl StructuralPartialEq for Coordinates
Auto Trait Implementations§
impl Freeze for Coordinates
impl RefUnwindSafe for Coordinates
impl Send for Coordinates
impl Sync for Coordinates
impl Unpin for Coordinates
impl UnwindSafe for Coordinates
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more