[][src]Trait silver_animation::Resetable

pub trait Resetable {
    fn reset(&mut self);
}

This trait can be implemented if an animation can be reset (Go back to the first frame)

Required methods

fn reset(&mut self)

Loading content...

Implementors

impl<Animation> Resetable for BasicAnimationContainer<Animation> where
    Animation: BasicAnimation + Resetable
[src]

impl<T, DrawFunc, MaxFrames> Resetable for Linear<T, DrawFunc, MaxFrames> where
    DrawFunc: Fn(&mut T, usize, &mut Graphics, Rectangle) -> Result<()>,
    MaxFrames: Fn(&T) -> usize
[src]

Loading content...