Skip to main content

FrameClock

Trait FrameClock 

Source
pub trait FrameClock {
    // Required method
    fn frame_time(&self) -> f64;
}
Expand description

Something that knows the time of the frame being produced: widget contexts, or a plain time in seconds.

Required Methods§

Source

fn frame_time(&self) -> f64

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl FrameClock for f64

Source§

fn frame_time(&self) -> f64

Implementors§