pub trait AnimationExt<T: Animatable>: Animation<T> + Sized {
// Provided methods
fn boxed(self) -> BoxAnimation<T> { ... }
fn then(self, next: impl Animation<T>) -> Sequence<T> { ... }
fn delay(self, duration: impl Into<Duration>) -> Sequence<T> { ... }
}Expand description
Convenience methods for concrete animation sources.
Provided Methods§
Sourcefn boxed(self) -> BoxAnimation<T>
fn boxed(self) -> BoxAnimation<T>
Type-erases this animation for use in transition factories.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".