Skip to main content

AllowLabeled

Trait AllowLabeled 

Source
pub trait AllowLabeled: MetricType {
    // Required method
    fn new_labeled(meta: LabeledMetricData) -> Self;
}
Expand description

Trait for metrics that can be nested inside a labeled metric.

Required Methods§

Source

fn new_labeled(meta: LabeledMetricData) -> Self

Create a new labeled metric.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> AllowLabeled for T
where T: MetricType + Sealed,