Skip to main content

Animatable

Trait Animatable 

Source
pub trait Animatable {
    // Required method
    fn animation_effects(&self) -> &[AnimationEffect];

    // Provided method
    fn timeline_steps(&self) -> &[TimelineStep] { ... }
}
Expand description

Trait for components that support animation.

Required Methods§

Provided Methods§

Source

fn timeline_steps(&self) -> &[TimelineStep]

Timed animation steps (timeline field): each step’s animations are resolved with delay += step.at. Empty by default.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§