pub struct Runs { /* private fields */ }Expand description
Aggregated consecutive-run result.
Implementations§
Source§impl Runs
impl Runs
Sourcepub fn point_count(&self) -> usize
pub fn point_count(&self) -> usize
Returns the number of unique points across all runs.
Sourcepub fn item_count(&self) -> usize
pub fn item_count(&self) -> usize
Returns the number of input items across all runs.
Trait Implementations§
Source§impl Accumulator<i64, Runs> for RunsAccumulator
impl Accumulator<i64, Runs> for RunsAccumulator
Source§type Retraction = i64
type Retraction = i64
Retained handle needed to undo one accumulated value.
Source§fn accumulate(&mut self, value: i64) -> Self::Retraction
fn accumulate(&mut self, value: i64) -> Self::Retraction
Adds an owned value to the accumulator and returns its retraction handle.
Source§fn retract(&mut self, value: Self::Retraction)
fn retract(&mut self, value: Self::Retraction)
Removes a value previously represented by the retraction handle.
Source§fn with_result<T>(&self, f: impl FnOnce(&Runs) -> T) -> T
fn with_result<T>(&self, f: impl FnOnce(&Runs) -> T) -> T
Exposes the current result without forcing owned result materialization.
impl Eq for Runs
impl StructuralPartialEq for Runs
Auto Trait Implementations§
impl Forget for Runs
impl Freeze for Runs
impl RefUnwindSafe for Runs
impl Send for Runs
impl Sync for Runs
impl Unpin for Runs
impl UnsafeUnpin for Runs
impl UnwindSafe for Runs
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