ndhistogram

Trait 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: One + AddAssign> Fill for T

Source§

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

Source§

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