pub enum DistanceMethod {
Euclidean,
Haversine,
Vincenty,
}Expand description
Distance calculation method
Variants§
Euclidean
Euclidean (Cartesian) distance
Haversine
Haversine formula (spherical Earth approximation)
Vincenty
Vincenty’s formula (accurate ellipsoidal distance)
Trait Implementations§
Source§impl Clone for DistanceMethod
impl Clone for DistanceMethod
Source§fn clone(&self) -> DistanceMethod
fn clone(&self) -> DistanceMethod
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 moreimpl Copy for DistanceMethod
Source§impl Debug for DistanceMethod
impl Debug for DistanceMethod
impl Eq for DistanceMethod
Source§impl PartialEq for DistanceMethod
impl PartialEq for DistanceMethod
Source§fn eq(&self, other: &DistanceMethod) -> bool
fn eq(&self, other: &DistanceMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DistanceMethod
Auto Trait Implementations§
impl Freeze for DistanceMethod
impl RefUnwindSafe for DistanceMethod
impl Send for DistanceMethod
impl Sync for DistanceMethod
impl Unpin for DistanceMethod
impl UnsafeUnpin for DistanceMethod
impl UnwindSafe for DistanceMethod
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