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§
Sourcetype AnimationHandle: AnimationHandle
type AnimationHandle: AnimationHandle
This is the handle that this animator returns and that can be used to track pending animations.
Required Methods§
Sourcefn start(&mut self, animation: Animation) -> Self::AnimationHandle
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.