pub trait Metric<R>:
Default
+ OnResultMut<R>
+ Clear
+ Serialize { }
Expand description
A trait to implement to be used in the measure!
macro
Metrics wrap expressions to measure them.
The return type, R, of the expression can be captured to perform special handling.
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.