Skip to main content

Animate

Trait Animate 

Source
pub trait Animate {
    // Required methods
    fn is_finished(&self) -> bool;
    fn reset(&mut self);
    fn tick(&mut self);
}
Expand description

The state of an animation.

Required Methods§

Source

fn is_finished(&self) -> bool

Say whether the animation has completed.

Source

fn reset(&mut self)

Reset the animation to the beginning.

Source

fn tick(&mut self)

Advance to the next step of the animation.

If the animation has completed, does nothing.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§