pub trait Nucleotide: Symbol {
type Amino: Symbol;
const ALL: &[Self];
// Required methods
fn complement(self) -> Self;
fn translate<G: GeneticCode>(
codon: [Self; 3],
genetic_code: G,
) -> Self::Amino;
}Required Associated Constants§
Required Associated Types§
Required Methods§
Sourcefn complement(self) -> Self
fn complement(self) -> Self
Return this nucleotide’s complement.
See Nuc::complement or AmbiNuc::complement for details.
Sourcefn translate<G: GeneticCode>(codon: [Self; 3], genetic_code: G) -> Self::Amino
fn translate<G: GeneticCode>(codon: [Self; 3], genetic_code: G) -> Self::Amino
Translate a codon into an amino acid
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.