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§
fn animation_effects(&self) -> &[AnimationEffect]
Provided Methods§
Sourcefn timeline_steps(&self) -> &[TimelineStep]
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".