pub struct NullParams {}
Expand description
These are empty parameters, standard histograms don’t need any extra information.
§Example
Basic Initialization is sufficient
let np = NullParams {};
Trait Implementations§
Source§impl Histogram<NullParams, usize, usize> for StandardHistogram
impl Histogram<NullParams, usize, usize> for StandardHistogram
Source§fn labels(
&self,
_params: &NullParams,
) -> Option<Box<dyn Iterator<Item = usize>>>
fn labels( &self, _params: &NullParams, ) -> Option<Box<dyn Iterator<Item = usize>>>
If possible, creates and returns an iterator for the labels for which
the histogram has frequencies stored.
impl HistogramParams for NullParams
Auto Trait Implementations§
impl Freeze for NullParams
impl RefUnwindSafe for NullParams
impl Send for NullParams
impl Sync for NullParams
impl Unpin for NullParams
impl UnwindSafe for NullParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more