pub trait AppTimer: Send + Sync {
// Required methods
fn tick(&mut self);
fn time(&self) -> Duration;
fn time_seconds(&self) -> Scalar;
fn delta_time(&self) -> Duration;
fn delta_time_seconds(&self) -> Scalar;
fn ticks(&self) -> usize;
}Required Methods§
fn tick(&mut self)
fn time(&self) -> Duration
fn time_seconds(&self) -> Scalar
fn delta_time(&self) -> Duration
fn delta_time_seconds(&self) -> Scalar
fn ticks(&self) -> usize
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".