pub trait InterpolationState<A>: Clone {
type FillSample: Clone;
// Required method
fn sample(&self) -> Self::FillSample;
// Provided methods
fn fold_sample(&mut self, _sample: Self::FillSample) { ... }
fn fold_aggregation(&mut self, _aggregation: A) { ... }
}
Expand description
An interpolation over samples and statistical aggregations.
Required Associated Types§
sourcetype FillSample: Clone
type FillSample: Clone
The type of fill (interpolated) samples computed by the interpolation.
Required Methods§
sourcefn sample(&self) -> Self::FillSample
fn sample(&self) -> Self::FillSample
Gets the fill (interpolated) sample of the interpolation.
Provided Methods§
sourcefn fold_sample(&mut self, _sample: Self::FillSample)
fn fold_sample(&mut self, _sample: Self::FillSample)
Folds a sample into the interpolation.
sourcefn fold_aggregation(&mut self, _aggregation: A)
fn fold_aggregation(&mut self, _aggregation: A)
Folds an aggregation into the interpolation.
Object Safety§
This trait is not object safe.