pub enum Value {
Unknown(OrderedFloat<f64>),
Latitude(Latitude),
Longitude(Longitude),
}Expand description
A parsed angular value, optionally tagged with its kind.
The labeled DMS format (48° 51′ 29.6″ N) carries an explicit
N/S/E/W direction letter, which lets the parser commit to a
specific concrete type. All other formats (decimal, signed DMS, bare DMS)
are direction-agnostic and produce Value::Unknown — the caller is
expected to resolve which axis the value belongs to.
Variants§
Unknown(OrderedFloat<f64>)
A value whose direction (latitude vs longitude) is not specified by its format (decimal or signed/bare DMS).
Latitude(Latitude)
A labeled DMS value with direction N or S — known to be a latitude.
Longitude(Longitude)
A labeled DMS value with direction E or W — known to be a longitude.
Trait Implementations§
impl Copy for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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