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.

Implementors§