pub trait Time:
AtLeast32BitUnsigned
+ RuntimeNum
+ MaybeDisplay { }Expand description
Unsigned temporal quantity for block numbers, timestamps, and durations.
Represents non-negative time-related values (e.g. block heights, Unix
timestamps, or high-precision durations) while inheriting deterministic
ordering, compact encoding, bounded persistence, and cross-environment
portability from RuntimeNum.
The [MaybeDisplay] bound allows such values to be meaningfully presented in
logs, events, and UIs when available, without affecting no_std compatibility.
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.