TagsProvider

Trait TagsProvider 

Source
pub trait TagsProvider<S>
where Self: AsRef<[S]>, S: AsRef<str>,
{ }
Expand description

Types that can provide an iterator of tags for a metric.

This is automatically implemented for anything that implements AsRef<[S]> where S: AsRef<str>.

In other words, you can pass a &[&str] (best), Vec<&str>, &[String], Vec<String>, &[Cow<str>], Vec<Cow<str>>, etc.

If you’d like to pass in empty tags, use the EMPTY_TAGS constant.

Implementors§

Source§

impl<S, T> TagsProvider<S> for T
where T: AsRef<[S]>, S: AsRef<str>,