pub struct ManhattanDistance;Expand description
sum_i |a[i] - b[i]| (C++ ManhattanDistance). No multiplies, so it is
cheaper on a core without a fast multiplier and has far more headroom
before it overflows.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ManhattanDistance
impl RefUnwindSafe for ManhattanDistance
impl Send for ManhattanDistance
impl Sync for ManhattanDistance
impl Unpin for ManhattanDistance
impl UnsafeUnpin for ManhattanDistance
impl UnwindSafe for ManhattanDistance
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