pub fn gauge<T, G>(&self, id: T, gauge: G) -> Arc<dyn Gauge>
    where
        T: Into<MetricId>,
        G: Gauge,
    {
        self.gauge_with(id, || gauge)
    }
/// Returns the gauge with the specified ID, registering a new one if absent.
///
/// # Panics
///
/// Panics if a metric is registered with the ID that is not a gauge.
Returns the gauge with the specified ID, registering a new one if absent.
Returns the gauge with the specified ID registering a new one if absent .
pub fn gauge<T, G>(&self, id: T, gauge: G) -> Arc<dyn Gauge>
    where
        T: Into<MetricId>,
        G: Gauge,
    {
        self.gauge_with(id, || gauge)
    }
pub fn gauge < T , G > ( & self , id : T , gauge : G ) -> Arc < dyn Gauge > where T : Into < MetricId > , G : Gauge , { self . gauge_with ( id , | | gauge ) }
Returns the gauge with the specified ID, registering a new one if absent.
Returns the gauge with the specified ID registering a new one if absent .
&self
id
T
gauge
G
&self
id
T
gauge
G
panics
Panics if a metric is registered with the ID that is not a gauge.
Panics if a metric is registered with the ID that is not a gauge .