Struct salah::Coordinates
source · pub struct Coordinates {
pub latitude: f64,
pub longitude: f64,
}
Expand description
The latitude and longitude associated with a location. Both latiude and longitude values are specified in degrees.
Fields§
§latitude: f64
§longitude: f64
Implementations§
source§impl Coordinates
impl Coordinates
pub fn latitude_angle(&self) -> Angle
pub fn longitude_angle(&self) -> Angle
Trait Implementations§
source§impl Clone for Coordinates
impl Clone for Coordinates
source§fn clone(&self) -> Coordinates
fn clone(&self) -> Coordinates
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Coordinates
impl Debug for Coordinates
source§impl PartialEq for Coordinates
impl PartialEq for Coordinates
source§fn eq(&self, other: &Coordinates) -> bool
fn eq(&self, other: &Coordinates) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy 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