pub trait Interpolate: Clone {
// Required method
fn interpolate(&self, target: &Self, progress: f64) -> Self;
}Expand description
Required Methods§
Sourcefn interpolate(&self, target: &Self, progress: f64) -> Self
fn interpolate(&self, target: &Self, progress: f64) -> Self
Blends toward target with nominal progress zero at self and one at target.
Custom implementations should be deterministic and handle overshoot intentionally. Built-in floats/pairs extrapolate; bounds preserve signed extrapolated dimensions. Colors extrapolate Oklab and clamp alpha.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".