pub enum GpsDatum {
Wgs84,
Gcj02,
}Expand description
The coordinate datum a stored GPS fix is expressed in (closed enum per
protocol_version; the code mirror of the Closed Enum Value Sets catalog).
Wgs84 is the near-universal camera format and the wire-absent
default — a gps value with no datum key decodes as Wgs84, and a Wgs84 fix
omits the key on encode, so every pre-datum sidecar and known-answer vector stays
byte-identical.
Variants§
Wgs84
The near-universal camera datum, and the wire-absent default.
Gcj02
China’s legally mandated obfuscated datum — user-entered coordinates from Chinese maps arrive in it. Also the target datum a BD-09 input is folded to on entry.
Implementations§
Trait Implementations§
impl Copy for GpsDatum
Source§impl<'de> Deserialize<'de> for GpsDatum
impl<'de> Deserialize<'de> for GpsDatum
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
impl Eq for GpsDatum
impl StructuralPartialEq for GpsDatum
Auto Trait Implementations§
impl Freeze for GpsDatum
impl RefUnwindSafe for GpsDatum
impl Send for GpsDatum
impl Sync for GpsDatum
impl Unpin for GpsDatum
impl UnsafeUnpin for GpsDatum
impl UnwindSafe for GpsDatum
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more