Trait ndhistogram::FillWith

source ·
pub trait FillWith<D> {
    // Required method
    fn fill_with(&mut self, value: D);
}
Expand description

Fill a histogram bin value with some data.

Fill a histogram with some value. This trait has a blanket implementation for AddAssign. In the case of primitive histogram values, this is equivalent to a weighted fill.

Required Methods§

source

fn fill_with(&mut self, value: D)

Fill this value with some data. For a simple number type means adding the weight.

Implementors§

source§

impl<D> FillWith<&D> for Dwhere for<'a> Self: AddAssign<&'a D>,

source§

impl<D> FillWith<D> for Dwhere for<'a> Self: AddAssign<D>,

source§

impl<T, C, O> FillWith<T> for Mean<T, O, C>where T: Copy + AddAssign + Mul<Output = T>, C: AddAssign + One,

source§

impl<T, W> FillWith<W> for Sum<T>where T: FillWith<W> + Copy, W: Copy,

source§

impl<T, W> FillWith<W> for WeightedSum<T>where T: FillWith<W> + Copy, W: Mul<Output = W> + Copy,