/// Replaces first and second gap in a not-all-gap triplet with `N`
Replaces first and second gap in a not-all-gap triplet with `N`
Replaces first and second gap in a not - all - gap triplet with ` N `
pub fn protect_codon_in_place(triplet: &mut [Nuc]) {
  if triplet[0].is_gap() {
    triplet[0] = Nuc::N;
    if triplet[1].is_gap() {
      triplet[1] = Nuc::N;
    }
  }
}
pub fn protect_codon_in_place ( triplet : & mut [ Nuc ] ) { if triplet [ 0 ] . is_gap ( ) { triplet [ 0 ] = Nuc :: N ; if triplet [ 1 ] . is_gap ( ) { triplet [ 1 ] = Nuc :: N ; } } }
Replaces first and second gap in a not-all-gap triplet with `N`
Replaces first and second gap in a not - all - gap triplet with ` N `
triplet
&mut [Nuc]