pub trait DurationExt {
const QUANTUM: Self;
// Required methods
fn from_quanta(quanta: Quanta) -> Self;
fn into_quanta(self) -> Quanta;
}Required Associated Constants§
Required Methods§
Sourcefn from_quanta(quanta: Quanta) -> Self
fn from_quanta(quanta: Quanta) -> Self
Constructs a Duration from quanta.
Sourcefn into_quanta(self) -> Quanta
fn into_quanta(self) -> Quanta
Converts the duration into quanta.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".