pub fn distance(&self, other: &Self) -> usize {
    if self.nucleotides.len() != other.nucleotides.len() {
      panic!()
    }
    self
      .nucleotides
      .iter()
      .zip(other.nucleotides.iter())
      .filter(|(n1, n2)| **n1 != **n2)
      .count()
  }
/// returns the Hamming distance between the 2 strings.
/// panics if the strings are not of the same length
returns the Hamming distance between the 2 strings.
panics if the strings are not of the same length
returns the Hamming distance between the 2 strings . panics if the strings are not of the same length
pub fn distance(&self, other: &Self) -> usize {
    if self.nucleotides.len() != other.nucleotides.len() {
      panic!()
    }
    self
      .nucleotides
      .iter()
      .zip(other.nucleotides.iter())
      .filter(|(n1, n2)| **n1 != **n2)
      .count()
  }
pub fn distance ( & self , other : & Self ) -> usize { if self . nucleotides . len ( ) != other . nucleotides . len ( ) { panic ! ( ) } self . nucleotides . iter ( ) . zip ( other . nucleotides . iter ( ) ) . filter ( | ( n1 , n2 ) | * * n1 != * * n2 ) . count ( ) }
returns the Hamming distance between the 2 strings.
returns the Hamming distance between the 2 strings .
&self
other
&Self
&self
other
&Self