pub trait AnyMeterCore: MeterCore {
    // Required method
    fn as_any(&self) -> &(dyn Any + 'static);
}
Available on crate feature metrics only.
Expand description

An extension trait that allows meters to be downcast

Required Methods§

source

fn as_any(&self) -> &(dyn Any + 'static)

Returns the current type as Any

Implementors§

source§

impl<T> AnyMeterCore for Twhere T: MeterCore + 'static,