pub trait TimeUnit: Sealed {
type Repr: Copy + Clone + PartialEq + PartialOrd + Eq + Ord + Debug;
const ZERO: Self::Repr;
}Expand description
A trait for time units.
Required Associated Constants§
Sourceconst ZERO: Self::Repr
const ZERO: Self::Repr
The zero value of Self::Repr.
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".