Animator

Trait Animator 

Source
pub trait Animator {
    type AnimationHandle: AnimationHandle;

    // Required method
    fn start(&mut self, animation: Animation) -> Self::AnimationHandle;
}
Expand description

This trait should be implemented by types that schedule animations for objects that can be animated.

Required Associated Types§

Source

type AnimationHandle: AnimationHandle

This is the handle that this animator returns and that can be used to track pending animations.

Required Methods§

Source

fn start(&mut self, animation: Animation) -> Self::AnimationHandle

This function should start the given animation and return a handle that can be used to track and control its progress.

Implementors§