Skip to main content

AnimationClock

Trait AnimationClock 

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

Clock used by the animation runtime.

Required Methods§

Source

fn now(&self) -> Duration

Returns the current runtime timestamp.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§