pub struct HammingDistance;Expand description
A concrete implementation of the Diversity trait that calculates the Hamming distance between two [Genotype]s. The Hamming distance is the number of positions at which the corresponding genes are different normalized by the total number of genes.
Trait Implementations§
Source§impl Clone for HammingDistance
impl Clone for HammingDistance
Source§fn clone(&self) -> HammingDistance
fn clone(&self) -> HammingDistance
Returns a duplicate 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<G, C> Diversity<C> for HammingDistance
impl<G, C> Diversity<C> for HammingDistance
Auto Trait Implementations§
impl Freeze for HammingDistance
impl RefUnwindSafe for HammingDistance
impl Send for HammingDistance
impl Sync for HammingDistance
impl Unpin for HammingDistance
impl UnsafeUnpin for HammingDistance
impl UnwindSafe for HammingDistance
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