[−][src]Struct bio::alphabets::Alphabet
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]
C: Borrow<u8>,
T: IntoIterator<Item = C>,
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]
C: Borrow<u8>,
T: IntoIterator<Item = C>,
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
impl Sync for Alphabet
impl Unpin for Alphabet
impl Send for Alphabet
impl UnwindSafe for Alphabet
impl RefUnwindSafe for Alphabet
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,