Skip to main content

Crate use_alphabet

Crate use_alphabet 

Source
Expand description

§use-alphabet

Primitive biological alphabet vocabulary.

use-alphabet provides deterministic symbol sets for simple DNA, RNA, and protein alphabets, plus custom alphabets. It checks membership only; it does not parse sequence files, search sequences, score residues, or infer biology.

use use_alphabet::BioAlphabet;

let dna = BioAlphabet::dna();

assert!(dna.contains('A'));
assert!(dna.contains_all("ACGT"));
assert!(!dna.contains('U'));

Structs§

AlphabetSymbolSet
Deterministic set of biological alphabet symbols.
BioAlphabet
A biological alphabet with a descriptive kind and symbol set.

Enums§

AlphabetError
Error returned by alphabet constructors.
AlphabetKind
A descriptive kind for a biological alphabet.