pub struct AlphabetSymbolSet { /* private fields */ }Expand description
Deterministic set of biological alphabet symbols.
Implementations§
Source§impl AlphabetSymbolSet
impl AlphabetSymbolSet
Sourcepub fn new(
symbols: impl IntoIterator<Item = char>,
) -> Result<Self, AlphabetError>
pub fn new( symbols: impl IntoIterator<Item = char>, ) -> Result<Self, AlphabetError>
Creates a symbol set from characters.
§Errors
Returns AlphabetError::EmptySymbolSet when no symbols are supplied.
Sourcepub fn from_symbols(symbols: impl AsRef<str>) -> Result<Self, AlphabetError>
pub fn from_symbols(symbols: impl AsRef<str>) -> Result<Self, AlphabetError>
Creates a symbol set from string characters.
§Errors
Returns AlphabetError::EmptySymbolSet when the string is empty.
Trait Implementations§
Source§impl Clone for AlphabetSymbolSet
impl Clone for AlphabetSymbolSet
Source§fn clone(&self) -> AlphabetSymbolSet
fn clone(&self) -> AlphabetSymbolSet
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlphabetSymbolSet
impl Debug for AlphabetSymbolSet
Source§impl PartialEq for AlphabetSymbolSet
impl PartialEq for AlphabetSymbolSet
impl Eq for AlphabetSymbolSet
impl StructuralPartialEq for AlphabetSymbolSet
Auto Trait Implementations§
impl Freeze for AlphabetSymbolSet
impl RefUnwindSafe for AlphabetSymbolSet
impl Send for AlphabetSymbolSet
impl Sync for AlphabetSymbolSet
impl Unpin for AlphabetSymbolSet
impl UnsafeUnpin for AlphabetSymbolSet
impl UnwindSafe for AlphabetSymbolSet
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more