pub struct Hamming;
Expand description
Hamming distance function for strings. Default as the fastest.
Returns the number of characters that are different between the two strings.
If the strings are not the same length, adds the length difference as well.
Trait Implementations§
impl Copy for Hamming
Auto Trait Implementations§
impl Freeze for Hamming
impl RefUnwindSafe for Hamming
impl Send for Hamming
impl Sync for Hamming
impl Unpin for Hamming
impl UnwindSafe for Hamming
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