Trait windowed_stats::experimental::series::Sampler
source · pub trait Sampler<T> {
type Error;
// Required method
fn fold(&mut self, sample: T) -> Result<(), Self::Error>;
}
Expand description
A type that folds samples into an aggregation or some other state.
Required Associated Types§
sourcetype Error
type Error
The type of error that can occur when folding samples into the sampler.