pub struct ParameterSeries<T: ParameterValue> { /* private fields */ }Expand description
Thin typed wrapper over an unchanged serial-core Series.
Implementations§
Source§impl<T: ParameterValue> ParameterSeries<T>
impl<T: ParameterValue> ParameterSeries<T>
Sourcepub fn try_new(
id: impl Into<String>,
order: Vec<T>,
) -> Result<Self, ParameterError>
pub fn try_new( id: impl Into<String>, order: Vec<T>, ) -> Result<Self, ParameterError>
Constructs one exhaustive exactly-once parameter series.
Sourcepub fn try_new_with_rule(
id: impl Into<String>,
rule: AggregateRule,
order: Vec<T>,
) -> Result<Self, ParameterError>
pub fn try_new_with_rule( id: impl Into<String>, rule: AggregateRule, order: Vec<T>, ) -> Result<Self, ParameterError>
Constructs one parameter series under an explicit aggregate rule.
Sourcepub fn alphabet(&self) -> &ParameterAlphabet<T>
pub fn alphabet(&self) -> &ParameterAlphabet<T>
Returns the retained generic parameter alphabet.
Sourcepub fn rule(&self) -> &AggregateRule
pub fn rule(&self) -> &AggregateRule
Returns the unchanged aggregate rule carried by the series.
Sourcepub fn ledger(&self) -> &AggregateLedger<T>
pub fn ledger(&self) -> &AggregateLedger<T>
Returns the source aggregate ledger retained by serial-core.
Sourcepub fn apply(
&self,
transform: &SeriesTransform<ParameterAlphabet<T>>,
) -> Result<Self, ParameterError>
pub fn apply( &self, transform: &SeriesTransform<ParameterAlphabet<T>>, ) -> Result<Self, ParameterError>
Applies one serial-core transform and returns a new typed parameter series.
Trait Implementations§
Source§impl<T: Clone + ParameterValue> Clone for ParameterSeries<T>
impl<T: Clone + ParameterValue> Clone for ParameterSeries<T>
Source§fn clone(&self) -> ParameterSeries<T>
fn clone(&self) -> ParameterSeries<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 ParameterSeries<T>
impl<T: Debug + ParameterValue> Debug for ParameterSeries<T>
impl<T: Eq + ParameterValue> Eq for ParameterSeries<T>
Source§impl<T: PartialEq + ParameterValue> PartialEq for ParameterSeries<T>
impl<T: PartialEq + ParameterValue> PartialEq for ParameterSeries<T>
impl<T: PartialEq + ParameterValue> StructuralPartialEq for ParameterSeries<T>
Auto Trait Implementations§
impl<T> Freeze for ParameterSeries<T>
impl<T> RefUnwindSafe for ParameterSeries<T>where
T: RefUnwindSafe,
impl<T> Send for ParameterSeries<T>where
T: Send,
impl<T> Sync for ParameterSeries<T>where
T: Sync,
impl<T> Unpin for ParameterSeries<T>where
T: Unpin,
impl<T> UnsafeUnpin for ParameterSeries<T>
impl<T> UnwindSafe for ParameterSeries<T>where
T: RefUnwindSafe + 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