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§
fn frame_time(&self) -> f64
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".