Skip to main content

PlaybackExt

Trait PlaybackExt 

Source
pub trait PlaybackExt: Unplaced {
    // 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".

Implementors§

Source§

impl<A> PlaybackExt for A
where A: Unplaced,