Trait tea_time::timeunit::TimeUnitTrait
source · pub trait TimeUnitTrait:
Copy
+ Clone
+ Debug
+ PartialEq
+ Eq
+ Hash
+ PartialOrd
+ Ord {
// Required method
fn unit() -> TimeUnit;
}Expand description
A trait for types representing time units.
This trait is implemented by types that represent specific units of time, such as years, months, days, hours, etc. It provides a common interface for these types and ensures they have certain properties and behaviors.
Required Methods§
Object Safety§
This trait is not object safe.