pub struct Manhattan;Expand description
Manhattan distance, also known as L1 distance.
It is defined as the sum of the absolute difference between two points.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Manhattan
impl RefUnwindSafe for Manhattan
impl Send for Manhattan
impl Sync for Manhattan
impl Unpin for Manhattan
impl UnsafeUnpin for Manhattan
impl UnwindSafe for Manhattan
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