Trait ndhistogram::Fill

source ·
pub trait Fill {
    // Required method
    fn fill(&mut self);
}
Expand description

Fill a histogram bin value with unit weight.

Values that may be stored in a Histogram should implement this trait to allow that histogram to be filled. A blanket implementation is provided for types that implement One and AddAssign traits. See also FillWith.

Required Methods§

source

fn fill(&mut self)

Fill this value with unit weight. For a simple number type this means simply increment by one.

Implementors§

source§

impl<T: Copy + Fill> Fill for Sum<T>

source§

impl<T: Copy + Fill> Fill for WeightedSum<T>

source§

impl<T: One + AddAssign> Fill for T