pub trait Animatable:
Sized
+ Reflect
+ Send
+ Sync
+ 'static {
// Required methods
fn interpolate(a: &Self, b: &Self, time: f32) -> Self;
fn blend(inputs: impl Iterator<Item = BlendInput<Self>>) -> Self;
}Expand description
An animatable value type.
Required Methods§
Sourcefn interpolate(a: &Self, b: &Self, time: f32) -> Self
fn interpolate(a: &Self, b: &Self, time: f32) -> Self
Interpolates between a and b with an interpolation factor of time.
The time parameter here may not be clamped to the range [0.0, 1.0].
Sourcefn blend(inputs: impl Iterator<Item = BlendInput<Self>>) -> Self
fn blend(inputs: impl Iterator<Item = BlendInput<Self>>) -> Self
Blends one or more values together.
Implementors should return a default value when no inputs are provided here.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.