pub enum CellDistanceFunction {
Euclidean,
Manhattan,
Natural,
}
Expand description
The function to use to compute distance between cells
Variants§
Euclidean
The actual straight line distance
Manhattan
Sum of the X and Y distances
Natural
Combines Manhattan and Euclidean
Trait Implementations§
Source§impl Clone for CellDistanceFunction
impl Clone for CellDistanceFunction
Source§fn clone(&self) -> CellDistanceFunction
fn clone(&self) -> CellDistanceFunction
Returns a copy 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 moreimpl Copy for CellDistanceFunction
Auto Trait Implementations§
impl Freeze for CellDistanceFunction
impl RefUnwindSafe for CellDistanceFunction
impl Send for CellDistanceFunction
impl Sync for CellDistanceFunction
impl Unpin for CellDistanceFunction
impl UnwindSafe for CellDistanceFunction
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