pub enum AminoAcid {
Show 23 variants
Alanine,
Arginine,
Asparagine,
AsparticAcid,
Cysteine,
Glutamine,
GlutamicAcid,
Glycine,
Histidine,
Isoleucine,
Leucine,
Lysine,
Methionine,
Phenylalanine,
Proline,
Serine,
Threonine,
Tryptophan,
Tyrosine,
Valine,
Stop,
Ambiguous(char),
Unknown,
}Expand description
A primitive amino-acid symbol.
Variants§
Alanine
Alanine.
Arginine
Arginine.
Asparagine
Asparagine.
AsparticAcid
Aspartic acid.
Cysteine
Cysteine.
Glutamine
Glutamine.
GlutamicAcid
Glutamic acid.
Glycine
Glycine.
Histidine
Histidine.
Isoleucine
Isoleucine.
Leucine
Leucine.
Lysine
Lysine.
Methionine
Methionine.
Phenylalanine
Phenylalanine.
Proline
Proline.
Serine
Serine.
Threonine
Threonine.
Tryptophan
Tryptophan.
Tyrosine
Tyrosine.
Valine
Valine.
Stop
Stop symbol.
Ambiguous(char)
Ambiguous amino-acid symbol, such as X.
Unknown
Explicit unknown amino acid, displayed as ?.
Implementations§
Source§impl AminoAcid
impl AminoAcid
Sourcepub const fn parse_symbol(symbol: char) -> Result<Self, AminoAcidParseError>
pub const fn parse_symbol(symbol: char) -> Result<Self, AminoAcidParseError>
Parses a common one-letter amino-acid symbol.
Recognized symbols are the 20 common one-letter codes, X for ambiguous, and * for stop.
§Errors
Returns AminoAcidParseError::InvalidSymbol when the symbol is not recognized.
Sourcepub const fn kind(self) -> AminoAcidKind
pub const fn kind(self) -> AminoAcidKind
Returns the descriptive amino-acid kind.
Sourcepub const fn three_letter_code(self) -> Option<&'static str>
pub const fn three_letter_code(self) -> Option<&'static str>
Returns the common three-letter code where one is defined by this primitive vocabulary.
Trait Implementations§
Source§impl Ord for AminoAcid
impl Ord for AminoAcid
Source§impl PartialOrd for AminoAcid
impl PartialOrd for AminoAcid
impl Copy for AminoAcid
impl Eq for AminoAcid
impl StructuralPartialEq for AminoAcid
Auto Trait Implementations§
impl Freeze for AminoAcid
impl RefUnwindSafe for AminoAcid
impl Send for AminoAcid
impl Sync for AminoAcid
impl Unpin for AminoAcid
impl UnsafeUnpin for AminoAcid
impl UnwindSafe for AminoAcid
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