pub trait AnimationManager<T: Animatable + Send + 'static>: Clone + Copy {
// Required methods
fn new(initial: T) -> Self;
fn animate_to(&mut self, target: T, config: AnimationConfig);
fn animate_sequence(&mut self, sequence: AnimationSequence<T>);
fn animate_keyframes(&mut self, animation: KeyframeAnimation<T>);
fn update(&mut self, dt: f32) -> bool;
fn get_value(&self) -> T;
fn is_running(&self) -> bool;
fn reset(&mut self);
fn stop(&mut self);
fn delay(&mut self, duration: Duration);
}Required Methods§
fn new(initial: T) -> Self
fn animate_to(&mut self, target: T, config: AnimationConfig)
fn animate_sequence(&mut self, sequence: AnimationSequence<T>)
fn animate_keyframes(&mut self, animation: KeyframeAnimation<T>)
fn update(&mut self, dt: f32) -> bool
fn get_value(&self) -> T
fn is_running(&self) -> bool
fn reset(&mut self)
fn stop(&mut self)
fn delay(&mut self, duration: Duration)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.