Skip to main content

Animation

Trait Animation 

Source
pub trait Animation: Future { }
Expand description

Anything that can be awaited in a scene: a tween, wait_for, all(..), an async block… Every future is one; the trait exists for the error message when a closure returns something else.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F: Future> Animation for F