pub fn new<T>(name: T) -> MetricId
    where
        T: Into<Cow<'static, str>>,
    {
        MetricId {
            name: name.into(),
            tags: Tags(BTreeMap::new()),
        }
    }
/// Creates a new metric ID with the specified name and no tags.
Creates a new metric ID with the specified name and no tags.
Creates a new metric ID with the specified name and no tags .
pub fn new<T>(name: T) -> MetricId
    where
        T: Into<Cow<'static, str>>,
    {
        MetricId {
            name: name.into(),
            tags: Tags(BTreeMap::new()),
        }
    }
pub fn new < T > ( name : T ) -> MetricId where T : Into < Cow < ' static , str > > , { MetricId { name : name . into ( ) , tags : Tags ( BTreeMap :: new ( ) ) , } }
Creates a new metric ID with the specified name and no tags.
Creates a new metric ID with the specified name and no tags .
name
T
name
T