TimestampExt

Trait TimestampExt 

Source
pub trait TimestampExt {
    // Required methods
    fn quantize(self) -> Quanta;
    fn from_quanta(quanta: Quanta) -> Self;
}

Required Methods§

Source

fn quantize(self) -> Quanta

Calculates the number of quanta between zero and the current timestamp.

Source

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.

Implementors§