pub trait DurationExt {
// Required methods
fn s(self) -> Time;
fn ms(self) -> Time;
}Expand description
Allows for easy conversions of different number types into the time type(f32). Addition ally implements convenient functions for unit conversions- s ms
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".