pub trait ResolutionUnit: Into<u64> {
const RESOLUTION_UNIT_SHORT: &str;
}Expand description
Attach a physical unit (or “count” or similar) to a type.
Required Associated Constants§
Sourceconst RESOLUTION_UNIT_SHORT: &str
const RESOLUTION_UNIT_SHORT: &str
The physical unit for 1 increment of the resolution of the type (i.e. the unit for the result of the conversion into u64)
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.