[−][src]Trait metrics::AsScoped
A value that can be used as a metric scope.
This helper trait allows us to accept either a single string or a slice of strings to use as a scope, to avoid needing to allocate in the case where we want to be able to specify multiple scope levels in a single go.
Required methods
fn as_scoped(&'a self, base: MetricScope) -> MetricScope
Creates a new MetricScope
by adding self
to the base
scope.
Implementations on Foreign Types
impl<'a> AsScoped<'a> for str
[src]
fn as_scoped(&'a self, base: MetricScope) -> MetricScope
[src]
Implementors
impl<'a, 'b, T> AsScoped<'a> for T where
&'a T: AsRef<[&'b str]>,
T: 'a,
[src]
&'a T: AsRef<[&'b str]>,
T: 'a,