glean_core

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", so this trait is not object safe.

Implementors§

Source§

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