pub struct ParameterAlphabet<T: ParameterValue> { /* private fields */ }Expand description
Generic finite alphabet declared by one parameter owner.
Implementations§
Source§impl<T: ParameterValue> ParameterAlphabet<T>
impl<T: ParameterValue> ParameterAlphabet<T>
Sourcepub fn try_new(
id: impl Into<String>,
symbols: Vec<T>,
) -> Result<Self, ParameterError>
pub fn try_new( id: impl Into<String>, symbols: Vec<T>, ) -> Result<Self, ParameterError>
Constructs a finite parameter alphabet with a stable caller-owned id.
Sourcepub fn id(&self) -> &AlphabetId
pub fn id(&self) -> &AlphabetId
Returns the stable identity of this alphabet.
Trait Implementations§
Source§impl<T: Clone + ParameterValue> Clone for ParameterAlphabet<T>
impl<T: Clone + ParameterValue> Clone for ParameterAlphabet<T>
Source§fn clone(&self) -> ParameterAlphabet<T>
fn clone(&self) -> ParameterAlphabet<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug + ParameterValue> Debug for ParameterAlphabet<T>
impl<T: Debug + ParameterValue> Debug for ParameterAlphabet<T>
impl<T: Eq + ParameterValue> Eq for ParameterAlphabet<T>
Source§impl<T: PartialEq + ParameterValue> PartialEq for ParameterAlphabet<T>
impl<T: PartialEq + ParameterValue> PartialEq for ParameterAlphabet<T>
Source§impl<T: ParameterValue> SerialAlphabet for ParameterAlphabet<T>
impl<T: ParameterValue> SerialAlphabet for ParameterAlphabet<T>
impl<T: PartialEq + ParameterValue> StructuralPartialEq for ParameterAlphabet<T>
Auto Trait Implementations§
impl<T> Freeze for ParameterAlphabet<T>
impl<T> RefUnwindSafe for ParameterAlphabet<T>where
T: RefUnwindSafe,
impl<T> Send for ParameterAlphabet<T>where
T: Send,
impl<T> Sync for ParameterAlphabet<T>where
T: Sync,
impl<T> Unpin for ParameterAlphabet<T>where
T: Unpin,
impl<T> UnsafeUnpin for ParameterAlphabet<T>
impl<T> UnwindSafe for ParameterAlphabet<T>where
T: UnwindSafe,
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