Name

Trait Name 

Source
pub trait Name {
    // Required methods
    fn get(&self, key: &str) -> Option<&str>;
    fn visit(&self, s: &mut dyn NameVisitor);
}
Expand description

Name of the metric

You may use HashMap<String, String> or BTreeMap<String, String> for the name, but it might be more efficient to have a structure as a name and used static strings as key names instead.

Required Methods§

Source

fn get(&self, key: &str) -> Option<&str>

Get item by key

Source

fn visit(&self, s: &mut dyn NameVisitor)

Visit all keys in metric

Implementations on Foreign Types§

Source§

impl Name for Value

Source§

fn get(&self, key: &str) -> Option<&str>

Source§

fn visit(&self, s: &mut dyn NameVisitor)

Implementors§