[][src]Trait ndhistogram::FillWeight

pub trait FillWeight<W> {
    pub fn fill_weight(&mut self, weight: W);
}

Fill a histogram bin value with a weight.

Values that may be stored in a Histogram should implement this trait to allow that histogram to be filled with weights. A blanket implementation is provided for types that implement the AddAssign trait.

Required methods

pub fn fill_weight(&mut self, weight: W)[src]

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

Loading content...

Implementors

impl<W> FillWeight<W> for W where
    Self: AddAssign<W>, 
[src]

Loading content...