pub trait DurationExtension { // Required method fn get_time(&self) -> Time; }
Trait to extend the Duration type with a method to convert it to a Time struct.
Duration
Time
Converts a Duration into a Time struct.