pub trait Simulation {
// Required methods
fn x(&self, time: f32) -> f32;
fn dx(&self, time: f32) -> f32;
fn is_done(&self, time: f32) -> bool;
// Provided method
fn tolerance(&self) -> Tolerance { ... }
}Expand description
The shared animation layer — physics, curves, driver — see
frus_core::animation. Re-exported here so applications can reach it through
frus_widgets without depending on frus-core directly.
A motion described as a pure function of time.
time is in seconds since the motion began.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".