Skip to main content

AnimationExt

Trait AnimationExt 

Source
pub trait AnimationExt: Animation + Sized {
    // Provided methods
    fn run_time(self, secs: f32) -> Timed<Self> { ... }
    fn rate(self, rate: RateFn) -> Timed<Self> { ... }
}
Expand description

Builder methods available on every animation.

Provided Methods§

Source

fn run_time(self, secs: f32) -> Timed<Self>

Overrides the length in seconds.

Source

fn rate(self, rate: RateFn) -> Timed<Self>

Overrides the easing.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§