pub trait DurationExtension {
// Required method
fn get_time(&self) -> Time;
}Expand description
Trait to extend the Duration type with a method to convert it to a Time struct.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".