pub trait Spawn {
// Required method
fn spawn(self) -> AnimationHandle;
// Provided method
fn launch(self)
where Self: Sized { ... }
}
Expand description
An animation that can be spawned.
Required Methods§
sourcefn spawn(self) -> AnimationHandle
fn spawn(self) -> AnimationHandle
Spawns the animation, returning a handle that tracks the animation.
When the returned handle is dropped, the animation is stopped.