pub trait StyleInterpolatable: Clone + FromFeatureStateProperty {
// Required method
fn interpolate(a: &Self, b: &Self, t: f32) -> Self;
}Expand description
Interpolation behaviour for style values.
Implementors must also provide FromFeatureStateProperty so that
feature-state-driven StyleValue::FeatureState variants can attempt
conversion from PropertyValue during evaluation.
Required Methods§
Sourcefn interpolate(a: &Self, b: &Self, t: f32) -> Self
fn interpolate(a: &Self, b: &Self, t: f32) -> Self
Sample between two stop values.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".