Skip to main content

Clock

Trait Clock 

Source
pub trait Clock {
    // Required method
    fn now(&self) -> Time;
}
Expand description

Supplies monotonic time to animation sampling.

Required Methods§

Source

fn now(&self) -> Time

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§