[][src]Struct bio::alphabets::Alphabet

pub struct Alphabet {
    pub symbols: BitSet,
}

Representation of an alphabet.

Fields

symbols: BitSet

Methods

impl Alphabet[src]

pub fn new<C, T>(symbols: T) -> Self where
    C: Borrow<u8>,
    T: IntoIterator<Item = C>, 
[src]

Create new alphabet from given symbols.

pub fn insert(&mut self, a: u8)[src]

Insert symbol into alphabet.

pub fn is_word<C, T>(&self, text: T) -> bool where
    C: Borrow<u8>,
    T: IntoIterator<Item = C>, 
[src]

Check if given text is a word over the alphabet.

pub fn max_symbol(&self) -> Option<u8>[src]

Return lexicographically maximal symbol.

pub fn len(&self) -> usize[src]

Return size of the alphabet.

pub fn is_empty(&self) -> bool[src]

Is this alphabet empty?

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]