pub fn replace_gauge<T, G>(&self, id: T, gauge: G)
    where
        T: Into<MetricId>,
        G: Gauge,
    {
        Arc::make_mut(&mut self.metrics.lock())
            .insert(Arc::new(id.into()), Metric::Gauge(Arc::new(gauge)));
    }
/// Adds a gauge to the registry, overwriting the previous metric with that ID if present.
Adds a gauge to the registry, overwriting the previous metric with that ID if present.
Adds a gauge to the registry overwriting the previous metric with that ID if present .
pub fn replace_gauge<T, G>(&self, id: T, gauge: G)
    where
        T: Into<MetricId>,
        G: Gauge,
    {
        Arc::make_mut(&mut self.metrics.lock())
            .insert(Arc::new(id.into()), Metric::Gauge(Arc::new(gauge)));
    }
pub fn replace_gauge < T , G > ( & self , id : T , gauge : G ) where T : Into < MetricId > , G : Gauge , { Arc :: make_mut ( & mut self . metrics . lock ( ) ) . insert ( Arc :: new ( id . into ( ) ) , Metric :: Gauge ( Arc :: new ( gauge ) ) ) ; }
Adds a gauge to the registry, overwriting the previous metric with that ID if present.
Adds a gauge to the registry overwriting the previous metric with that ID if present .
&self
id
T
gauge
G
&self
id
T
gauge
G