Crate protein_translation

Crate protein_translation 

Source
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§

str
string

Enums§

ProteinError
Error type.

Traits§

ProteinTranslate
Trait is handled for both &str and String for ease of use. Instead, the function can take both &str and String to return a Vec<&str>.