pub trait Animatable: Copy {
// Required method
fn lerp(self, to: Self, t: f64) -> Self;
}Expand description
Linear interpolation of animatable values (t in 0.0..1.0). This drives the canvas /
self-driven animation path (docs/shapes.md §5) and Qt’s sampled spring; native-widget
animation does not use it; the toolkit interpolates on its own compositor.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".