pub struct Coords {
pub lat: f64,
pub lon: f64,
}Expand description
Geographic coordinates in decimal degrees.
Validation:
latmust be finite and in[-90.0, 90.0]lonmust be finite and in[-180.0, 180.0]
Fields§
§lat: f64Latitude in decimal degrees, -90..=90.
lon: f64Longitude in decimal degrees, -180..=180.
Implementations§
Source§impl Coords
impl Coords
Trait Implementations§
impl Copy for Coords
impl StructuralPartialEq for Coords
Auto Trait Implementations§
impl Freeze for Coords
impl RefUnwindSafe for Coords
impl Send for Coords
impl Sync for Coords
impl Unpin for Coords
impl UnsafeUnpin for Coords
impl UnwindSafe for Coords
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