pub fn from_char(ch: char) -> Nucleotide {
        match ch {
            'A' => Nucleotide::A,
            'C' => Nucleotide::C,
            'G' => Nucleotide::G,
            'T' => Nucleotide::T,
            'U' => Nucleotide::U,
            _ => panic!("Invalid nucleotide: character `{}`", ch),
        }
    }
/// Convert from a capital letter to nucleotide
///
/// # Panic
///
/// Will panic if `ch` is not 'A', 'C', 'G', 'T', or 'U'
Convert from a capital letter to nucleotide
Convert from a capital letter to nucleotide
pub fn from_char(ch: char) -> Nucleotide {
        match ch {
            'A' => Nucleotide::A,
            'C' => Nucleotide::C,
            'G' => Nucleotide::G,
            'T' => Nucleotide::T,
            'U' => Nucleotide::U,
            _ => panic!("Invalid nucleotide: character `{}`", ch),
        }
    }
pub fn from_char ( ch : char ) -> Nucleotide { match ch { 'A' => Nucleotide :: A , 'C' => Nucleotide :: C , 'G' => Nucleotide :: G , 'T' => Nucleotide :: T , 'U' => Nucleotide :: U , _ => panic ! ( " " ch ) , } }
Convert from a capital letter to nucleotide
Convert from a capital letter to nucleotide
ch
char
panic
None