pub fn counter<T>(&self, id: T) -> Arc<Counter>
    where
        T: Into<MetricId>,
    {
        self.counter_with(id, Counter::default)
    }
/// Returns the counter with the specified ID, creating a default instance if absent.
///
/// # Panics
///
/// Panics if a metric is registered with the ID that is not a counter.
Returns the counter with the specified ID, creating a default instance if absent.
Returns the counter with the specified ID creating a default instance if absent .
pub fn counter<T>(&self, id: T) -> Arc<Counter>
    where
        T: Into<MetricId>,
    {
        self.counter_with(id, Counter::default)
    }
pub fn counter < T > ( & self , id : T ) -> Arc < Counter > where T : Into < MetricId > , { self . counter_with ( id , Counter :: default ) }
Returns the counter with the specified ID, creating a default instance if absent.
Returns the counter 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 counter.
Panics if a metric is registered with the ID that is not a counter .