[][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, Size, Combined> Resetable for BasicAnimationContainer<Animation, Size, Combined> where
    Animation: BasicAnimation<Size, Combined> + Resetable,
    Combined: AnimationShape<Size>, 
[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...