pub trait Ease {
// Required method
fn ease(&self, t: f64) -> f64;
}Expand description
Maps linear progress t ∈ [0, 1] to eased progress.
Implemented by CubicBezier and by any Fn(f64) -> f64, which is how
elastic_out, bounce_out and friends plug in.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".