Struct AlphabetSymbolSet
pub struct AlphabetSymbolSet { /* private fields */ }Expand description
Deterministic set of biological alphabet symbols.
Implementations§
§impl AlphabetSymbolSet
impl AlphabetSymbolSet
pub fn new(
symbols: impl IntoIterator<Item = char>,
) -> Result<AlphabetSymbolSet, AlphabetError>
pub fn new( symbols: impl IntoIterator<Item = char>, ) -> Result<AlphabetSymbolSet, AlphabetError>
Creates a symbol set from characters.
§Errors
Returns AlphabetError::EmptySymbolSet when no symbols are supplied.
pub fn from_symbols(
symbols: impl AsRef<str>,
) -> Result<AlphabetSymbolSet, AlphabetError>
pub fn from_symbols( symbols: impl AsRef<str>, ) -> Result<AlphabetSymbolSet, AlphabetError>
Creates a symbol set from string characters.
§Errors
Returns AlphabetError::EmptySymbolSet when the string is empty.
Trait Implementations§
§impl Clone for AlphabetSymbolSet
impl Clone for AlphabetSymbolSet
§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 more§impl Debug for AlphabetSymbolSet
impl Debug for AlphabetSymbolSet
§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