pub struct Parallel(pub Vec<Box<dyn Animation>>);Expand description
Runs animations together; lasts as long as the longest. Each child keeps its own easing. Children targeting the same mobject: the last one wins.
Tuple Fields§
§0: Vec<Box<dyn Animation>>Trait Implementations§
Source§impl Animation for Parallel
impl Animation for Parallel
Source§fn plan(&mut self, state: &SceneState)
fn plan(&mut self, state: &SceneState)
Called once when played, with the scene state at the start of the clip. Do the expensive
work (alignment, diffing) here.
Source§fn sample(&self, alpha: f32, state: &mut SceneState)
fn sample(&self, alpha: f32, state: &mut SceneState)
Writes the targets’ state at eased progress
alpha into state, which holds the scene
as it was at the start of the clip. Must be cheap and pure.Auto Trait Implementations§
impl !RefUnwindSafe for Parallel
impl !UnwindSafe for Parallel
impl Freeze for Parallel
impl Send for Parallel
impl Sync for Parallel
impl Unpin for Parallel
impl UnsafeUnpin for Parallel
Blanket Implementations§
Source§impl<A> AnimationExt for Awhere
A: Animation,
impl<A> AnimationExt for Awhere
A: Animation,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more