1 2 3 4 5 6 7 8
pub enum AnimationAction { Progress(f32), Stop, } pub trait AnimationActor { fn apply_animation(&mut self, progress: f32, stop: &mut bool); fn stop(&mut self) {} }