pub struct AggregateLedger<S>{ /* private fields */ }Expand description
Construction evidence retained by a valid crate::Series.
Implementations§
Source§impl<S> AggregateLedger<S>
impl<S> AggregateLedger<S>
Sourcepub fn alphabet_id(&self) -> &AlphabetId
pub fn alphabet_id(&self) -> &AlphabetId
Stable alphabet identity validated by this ledger.
Sourcepub fn rule(&self) -> AggregateRuleKind
pub fn rule(&self) -> AggregateRuleKind
Aggregate rule category applied during validation.
Sourcepub fn series_len(&self) -> usize
pub fn series_len(&self) -> usize
Number of ordered positions validated.
Sourcepub fn observed_count(&self, symbol: &S) -> Option<usize>
pub fn observed_count(&self, symbol: &S) -> Option<usize>
Observed count of symbol, or None when it is outside the alphabet.
Sourcepub fn expected_count(&self, symbol: &S) -> Option<usize>
pub fn expected_count(&self, symbol: &S) -> Option<usize>
Declared expected count of symbol when this rule has per-symbol expectations.
Sourcepub fn omitted_symbols(&self) -> &[S]
pub fn omitted_symbols(&self) -> &[S]
Alphabet symbols absent from the supplied series.
Sourcepub fn repeated_symbols(&self) -> &[S]
pub fn repeated_symbols(&self) -> &[S]
Alphabet symbols occurring more than once.
Sourcepub fn projected_classes(&self) -> &[ProjectedClassEvidence]
pub fn projected_classes(&self) -> &[ProjectedClassEvidence]
Projected-class count evidence, empty for non-projected rules.
Sourcepub fn is_exhaustive_exactly_once(&self) -> bool
pub fn is_exhaustive_exactly_once(&self) -> bool
Returns true when every alphabet symbol occurred exactly once.
Trait Implementations§
Source§impl<S> Clone for AggregateLedger<S>
impl<S> Clone for AggregateLedger<S>
Source§fn clone(&self) -> AggregateLedger<S>
fn clone(&self) -> AggregateLedger<S>
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<S> Debug for AggregateLedger<S>
impl<S> Debug for AggregateLedger<S>
impl<S> Eq for AggregateLedger<S>
Source§impl<S> PartialEq for AggregateLedger<S>
impl<S> PartialEq for AggregateLedger<S>
impl<S> StructuralPartialEq for AggregateLedger<S>
Auto Trait Implementations§
impl<S> Freeze for AggregateLedger<S>
impl<S> RefUnwindSafe for AggregateLedger<S>where
S: RefUnwindSafe,
impl<S> Send for AggregateLedger<S>where
S: Send,
impl<S> Sync for AggregateLedger<S>where
S: Sync,
impl<S> Unpin for AggregateLedger<S>where
S: Unpin,
impl<S> UnsafeUnpin for AggregateLedger<S>
impl<S> UnwindSafe for AggregateLedger<S>where
S: 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