/// Fetches the stats of a `Histogram`, given its name.
Fetches the stats of a `Histogram`, given its name.
Fetches the stats of a ` Histogram ` given its name .
pub fn fetch_histogram_stats(registry: &MetricsRegistry, name: &str) -> Option<HistogramStats> {
    let mut stats_map = fetch_histogram_vec_stats(registry, name);
    let stats = stats_map.remove(&Labels::new());
    assert!(
        stats_map.is_empty(),
        "{}: expecting `Histogram`, found `HistogramVec` {:?}",
        name,
        stats_map
    );
    stats
}
pub fn fetch_histogram_stats ( registry : & MetricsRegistry , name : & str ) -> Option < HistogramStats > { let mut stats_map = fetch_histogram_vec_stats ( registry , name ) ; let stats = stats_map . remove ( & Labels :: new ( ) ) ; assert ! ( stats_map is_empty ( ) " " name stats_map ) ; stats }
Fetches the stats of a `Histogram`, given its name.
Fetches the stats of a ` Histogram ` given its name .
registry
&MetricsRegistry
name
&str