pub struct UnsignedDist;
Expand description
Distance function for unsigned integers.
Returns if left < right { left - right } else { right - left } as u64
Trait Implementations§
Source§impl Clone for UnsignedDist
impl Clone for UnsignedDist
Source§fn clone(&self) -> UnsignedDist
fn clone(&self) -> UnsignedDist
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 moreSource§impl DistFn<u16> for UnsignedDist
impl DistFn<u16> for UnsignedDist
Source§impl DistFn<u32> for UnsignedDist
impl DistFn<u32> for UnsignedDist
Source§impl DistFn<u64> for UnsignedDist
impl DistFn<u64> for UnsignedDist
Source§impl DistFn<u8> for UnsignedDist
impl DistFn<u8> for UnsignedDist
Source§impl DistFn<usize> for UnsignedDist
impl DistFn<usize> for UnsignedDist
impl Copy for UnsignedDist
Auto Trait Implementations§
impl Freeze for UnsignedDist
impl RefUnwindSafe for UnsignedDist
impl Send for UnsignedDist
impl Sync for UnsignedDist
impl Unpin for UnsignedDist
impl UnwindSafe for UnsignedDist
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