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§
Sourcefn visit(&self, s: &mut dyn NameVisitor)
fn visit(&self, s: &mut dyn NameVisitor)
Visit all keys in metric