Trait Animatable
pub trait Animatable: Copy {
const TOLERANCE: f64;
// Required methods
fn to_channels(self) -> [f64; 4];
fn from_channels(channels: [f64; 4]) -> Self;
}Expand description
A value a motion can carry: a point, a rect, a colour, an amount.
Required Associated Constants§
Required Methods§
fn to_channels(self) -> [f64; 4]
fn from_channels(channels: [f64; 4]) -> Self
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.