pub enum AggState {
Count(u64),
Sum(f64),
Avg(AvgState),
Min(f64),
Max(f64),
Values(Vec<f64>),
}Expand description
Generic aggregation state. Concrete monoids consume / emit the variants they care about; a mismatched variant is an execution error rather than a silently accepted partial fold.
Variants§
Implementations§
Trait Implementations§
impl StructuralPartialEq for AggState
Auto Trait Implementations§
impl Freeze for AggState
impl RefUnwindSafe for AggState
impl Send for AggState
impl Sync for AggState
impl Unpin for AggState
impl UnsafeUnpin for AggState
impl UnwindSafe for AggState
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