pub trait TraceCount: Default + Copy {
// Required methods
fn sat_inc(&mut self);
fn as_usize(self) -> usize;
}Expand description
A value that can be use to count occurrences; this is implemented for (), u8, u16, u32, u64, u128, usize, f32 and f64
Required Methods§
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.