pub trait TimestampExt {
// Required methods
fn quantize(self) -> Quanta;
fn from_quanta(quanta: Quanta) -> Self;
}Required Methods§
Sourcefn quantize(self) -> Quanta
fn quantize(self) -> Quanta
Calculates the number of quanta between zero and the current timestamp.
Sourcefn from_quanta(quanta: Quanta) -> Self
fn from_quanta(quanta: Quanta) -> Self
Creates a timestamp from elapsed Quanta from the 0 timestamp.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.