pub enum Dms {
Decimal(f64),
Coordinates {
lat: Option<f64>,
lon: Option<f64>,
},
}Expand description
The result of parsing a coordinate string.
Variants§
Decimal(f64)
A single coordinate with no hemisphere — just a decimal-degree value.
Coordinates
A latitude and/or longitude in decimal degrees. A field is None when the input did
not supply that component.
Trait Implementations§
impl Copy for Dms
impl StructuralPartialEq for Dms
Auto Trait Implementations§
impl Freeze for Dms
impl RefUnwindSafe for Dms
impl Send for Dms
impl Sync for Dms
impl Unpin for Dms
impl UnsafeUnpin for Dms
impl UnwindSafe for Dms
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