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 · 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 DistanceMethod
impl Debug for DistanceMethod
Source§impl PartialEq for DistanceMethod
impl PartialEq for DistanceMethod
impl Copy for DistanceMethod
impl Eq for DistanceMethod
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