Expand description
§Protein Translation
A simple library to parse &str and String types to create a Vec<String> with protein
names.
§Example:
use protein_translation::*;
let rna = "AUGUUUUCUUAAAUG".to_string();
let protein_vec = rna.protein_translate().unwrap();
assert_eq!(
vec!["Methionine", "Phenylalanine", "Serine"],
protein_vec,
);Modules§
Enums§
- Protein
Error - Error type.
Traits§
- Protein
Translate - Trait is handled for both
&strandStringfor ease of use. Instead, the function can take both&strandStringto return aVec<&str>.