Skip to main content

AnimatedValue

Trait AnimatedValue 

Source
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§

Source

const ACCEPTS_DATA: bool

Whether the type takes the data value mode.

Source

const INTERPOLATES: bool

Whether keyframes of the type can interpolate; those of the others only hold.

Source

const OFFSETS: bool

Whether two values of the type have a difference to add: what repeat_offset needs.

Provided Associated Constants§

Source

const VALUE_CURVES: bool = false

Whether a keyframe of the type can start a value curve (ValueBezier).

Source

const SPLIT: Option<(usize, usize)> = None

The fewest and the most channels the type’s split mode takes, or None for a type without the mode.

Provided Methods§

Source

fn takes_value_curve(&self) -> bool

Whether a keyframe holding this value may start or end a value curve.

Source

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".

Implementations on Foreign Types§

Source§

impl AnimatedValue for String

Source§

const ACCEPTS_DATA: bool = false

Source§

const INTERPOLATES: bool = false

Source§

const OFFSETS: bool = false

Source§

impl AnimatedValue for f32

Implementors§

Source§

impl AnimatedValue for EffectValue

Source§

impl AnimatedValue for Insets

Source§

const ACCEPTS_DATA: bool = false

Source§

const INTERPOLATES: bool = true

Source§

const OFFSETS: bool = false

Source§

impl AnimatedValue for LayoutLength

Source§

const ACCEPTS_DATA: bool = false

Source§

const INTERPOLATES: bool = true

Source§

const OFFSETS: bool = false

Source§

impl AnimatedValue for LayoutOffset

Source§

const ACCEPTS_DATA: bool = false

Source§

const INTERPOLATES: bool = true

Source§

const OFFSETS: bool = false

Source§

impl AnimatedValue for LayoutSize

Source§

const ACCEPTS_DATA: bool = false

Source§

const INTERPOLATES: bool = true

Source§

const OFFSETS: bool = false

Source§

impl AnimatedValue for Paint

Source§

const ACCEPTS_DATA: bool = false

Source§

const INTERPOLATES: bool = true

Source§

const OFFSETS: bool = false

Source§

impl AnimatedValue for Path

Source§

const ACCEPTS_DATA: bool = false

Source§

const INTERPOLATES: bool = true

Source§

const OFFSETS: bool = false

Source§

impl AnimatedValue for Rgba

Source§

const ACCEPTS_DATA: bool = false

Source§

const INTERPOLATES: bool = true

Source§

const OFFSETS: bool = false

Source§

impl AnimatedValue for TextContent

Source§

const ACCEPTS_DATA: bool = false

Source§

const INTERPOLATES: bool = false

Source§

const OFFSETS: bool = false

Source§

impl AnimatedValue for Vec2