pub trait Animate:
Clone
+ PartialEq
+ 'static {
// Required method
fn lerp(&self, to: &Self, t: f32) -> Self;
}Expand description
A value an animation can move between two of: lerp gives the value
t of the way from self to to, where t may stray a little past 0
or 1 for an easing that overshoots.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".