pub struct ReducerState { /* private fields */ }Expand description
Running values of every reducer in a ReducerPlan, over one run.
Implementations§
Source§impl ReducerState
impl ReducerState
Sourcepub fn new(plan: &ReducerPlan) -> Self
pub fn new(plan: &ReducerPlan) -> Self
Returns the state of plan’s reducers before any sample.
Sourcepub fn push(&mut self, plan: &ReducerPlan, tick: u64, row: &[f64])
pub fn push(&mut self, plan: &ReducerPlan, tick: u64, row: &[f64])
Folds in the sample taken at tick, where row holds a value per stat column. A value that is not finite
is skipped.
Trait Implementations§
Source§impl Clone for ReducerState
impl Clone for ReducerState
Source§impl Debug for ReducerState
impl Debug for ReducerState
Source§impl PartialEq for ReducerState
impl PartialEq for ReducerState
impl StructuralPartialEq for ReducerState
Auto Trait Implementations§
impl Freeze for ReducerState
impl RefUnwindSafe for ReducerState
impl Send for ReducerState
impl Sync for ReducerState
impl Unpin for ReducerState
impl UnsafeUnpin for ReducerState
impl UnwindSafe for ReducerState
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