pub fn histogram<T>(&self, id: T) -> Arc<Histogram>
    where
        T: Into<MetricId>,
    {
        self.histogram_with(id, || {
            Histogram::new(ExponentiallyDecayingReservoir::new_with(self.clock.clone()))
        })
    }
/// Returns the histogram with the specified ID, creating a default instance if absent.
///
/// # Panics
///
/// Panics if a metric is registered with the ID that is not a histogram.
Returns the histogram with the specified ID, creating a default instance if absent.
Returns the histogram with the specified ID creating a default instance if absent .
pub fn histogram<T>(&self, id: T) -> Arc<Histogram>
    where
        T: Into<MetricId>,
    {
        self.histogram_with(id, || {
            Histogram::new(ExponentiallyDecayingReservoir::new_with(self.clock.clone()))
        })
    }
pub fn histogram < T > ( & self , id : T ) -> Arc < Histogram > where T : Into < MetricId > , { self . histogram_with ( id , | | { Histogram :: new ( ExponentiallyDecayingReservoir :: new_with ( self . clock . clone ( ) ) ) } ) }
Returns the histogram with the specified ID, creating a default instance if absent.
Returns the histogram with the specified ID creating a default instance if absent .
&self
id
T
&self
id
T
panics
Panics if a metric is registered with the ID that is not a histogram.
Panics if a metric is registered with the ID that is not a histogram .