Skip to main content

AnimationExt

Trait AnimationExt 

Source
pub trait AnimationExt: Placeable {
    // Provided methods
    fn with_rate_func(self, rate_func: fn(f64) -> f64) -> Paramed<Self> { ... }
    fn with_duration(self, duration_secs: f64) -> Paramed<Self> { ... }
    fn with_enabled(self, enabled: bool) -> Paramed<Self> { ... }
}
Expand description

Playback parameter builders for animations that have not been placed yet.

Provided Methods§

Source

fn with_rate_func(self, rate_func: fn(f64) -> f64) -> Paramed<Self>

Change the animation’s rate function.

Source

fn with_duration(self, duration_secs: f64) -> Paramed<Self>

Change the animation’s duration.

Source

fn with_enabled(self, enabled: bool) -> Paramed<Self>

Enable or disable this animation’s output.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§