Struct bio::alphabets::Alphabet
[−]
[src]
pub struct Alphabet { pub symbols: BitSet, }
Representation of an alphabet.
Fields
symbols: BitSet
Methods
impl Alphabet
[src]
fn new<'a, T: IntoTextIterator<'a>>(symbols: T) -> Self
Create new alphabet from given symbols.
fn insert(&mut self, a: u8)
Insert symbol into alphabet.
fn is_word<'a, T: IntoTextIterator<'a>>(&self, text: T) -> bool
Check if given text is a word over the alphabet.
fn max_symbol(&self) -> Option<u8>
Return lexicographically maximal symbol.
fn len(&self) -> usize
Return size of the alphabet.
fn is_empty(&self) -> bool
Is this alphabet empty?