Trait HasAnimationData

Source
pub trait HasAnimationData: Any {
    // Required methods
    fn animation_name(&self) -> String;
    fn pseudo_element(&self) -> String;
    fn elapsed_time(&self) -> f32;
    fn as_any(&self) -> &dyn Any;
}
Expand description

A trait for any object that has the data for an animation event

Required Methods§

Source

fn animation_name(&self) -> String

The name of the animation

Source

fn pseudo_element(&self) -> String

The name of the pseudo-element the animation runs on

Source

fn elapsed_time(&self) -> f32

The amount of time the animation has been running

Source

fn as_any(&self) -> &dyn Any

return self as Any

Implementors§