#[non_exhaustive]pub enum GeoDistanceType {
Arc,
Plane,
Raw(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Arc
The arc calculation is the most accurate.
Plane
The plane calculation is faster but less accurate.
Raw(String)
A value this version of the specification doesn’t list.
Implementations§
Source§impl GeoDistanceType
impl GeoDistanceType
Sourcepub fn from_known(value: &str) -> Option<GeoDistanceType>
pub fn from_known(value: &str) -> Option<GeoDistanceType>
The listed value with this name, if there is one.
Trait Implementations§
Source§impl Clone for GeoDistanceType
impl Clone for GeoDistanceType
Source§fn clone(&self) -> GeoDistanceType
fn clone(&self) -> GeoDistanceType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GeoDistanceType
impl Debug for GeoDistanceType
Source§impl<'de> Deserialize<'de> for GeoDistanceType
impl<'de> Deserialize<'de> for GeoDistanceType
Source§fn deserialize<D__>(
deserializer: D__,
) -> Result<GeoDistanceType, <D__ as Deserializer<'de>>::Error>where
D__: Deserializer<'de>,
fn deserialize<D__>(
deserializer: D__,
) -> Result<GeoDistanceType, <D__ as Deserializer<'de>>::Error>where
D__: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GeoDistanceType
Source§impl Hash for GeoDistanceType
impl Hash for GeoDistanceType
Source§impl PartialEq for GeoDistanceType
impl PartialEq for GeoDistanceType
Source§impl Serialize for GeoDistanceType
impl Serialize for GeoDistanceType
Source§fn serialize<S__>(
&self,
serializer: S__,
) -> Result<<S__ as Serializer>::Ok, <S__ as Serializer>::Error>where
S__: Serializer,
fn serialize<S__>(
&self,
serializer: S__,
) -> Result<<S__ as Serializer>::Ok, <S__ as Serializer>::Error>where
S__: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for GeoDistanceType
Auto Trait Implementations§
impl Freeze for GeoDistanceType
impl RefUnwindSafe for GeoDistanceType
impl Send for GeoDistanceType
impl Sync for GeoDistanceType
impl Unpin for GeoDistanceType
impl UnsafeUnpin for GeoDistanceType
impl UnwindSafe for GeoDistanceType
Blanket Implementations§
impl<T> Allocation for T
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.