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§
Sourcefn with_rate_func(self, rate_func: fn(f64) -> f64) -> Paramed<Self>
fn with_rate_func(self, rate_func: fn(f64) -> f64) -> Paramed<Self>
Change the animation’s rate function.
Sourcefn with_duration(self, duration_secs: f64) -> Paramed<Self>
fn with_duration(self, duration_secs: f64) -> Paramed<Self>
Change the animation’s duration.
Sourcefn with_enabled(self, enabled: bool) -> Paramed<Self>
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.