pub trait AnimatedValue: Sealed {
const ACCEPTS_DATA: bool;
const INTERPOLATES: bool;
const OFFSETS: bool;
const VALUE_CURVES: bool = false;
const SPLIT: Option<(usize, usize)> = None;
// Provided methods
fn takes_value_curve(&self) -> bool { ... }
fn extrapolates(&self, extrapolation: Extrapolation) -> bool { ... }
}Expand description
A type an Animated value can hold. Sealed: implemented for the model’s animatable types.
Required Associated Constants§
Sourceconst ACCEPTS_DATA: bool
const ACCEPTS_DATA: bool
Whether the type takes the data value mode.
Sourceconst INTERPOLATES: bool
const INTERPOLATES: bool
Whether keyframes of the type can interpolate; those of the others only hold.
Provided Associated Constants§
Sourceconst VALUE_CURVES: bool = false
const VALUE_CURVES: bool = false
Whether a keyframe of the type can start a value curve (ValueBezier).
Provided Methods§
Sourcefn takes_value_curve(&self) -> bool
fn takes_value_curve(&self) -> bool
Whether a keyframe holding this value may start or end a value curve.
Sourcefn extrapolates(&self, extrapolation: Extrapolation) -> bool
fn extrapolates(&self, extrapolation: Extrapolation) -> bool
Whether keyframes holding this value may extrapolate by extrapolation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".