Trait libcantal::Name
[−]
[src]
pub trait Name { fn get(&self, key: &str) -> Option<&str>; fn visit(&self, s: &mut NameVisitor); }
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
fn get(&self, key: &str) -> Option<&str>
Get item by key
fn visit(&self, s: &mut NameVisitor)
Visit all keys in metric
Implementors
impl Name for Value