[][src]Trait metrics::AsScoped

pub trait AsScoped<'a> {
    fn as_scoped(&'a self, base: MetricScope) -> MetricScope;
}

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.

Loading content...

Implementations on Foreign Types

impl<'a> AsScoped<'a> for str[src]

Loading content...

Implementors

impl<'a, 'b, T> AsScoped<'a> for T where
    &'a T: AsRef<[&'b str]>,
    T: 'a, 
[src]

Loading content...