FuncAnim

Trait FuncAnim 

Source
pub trait FuncAnim: FuncRequirement + 'static {
    // Required method
    fn func(
        &mut self,
        f: impl Fn(&Self, f64) -> Self + 'static,
    ) -> AnimationCell<Self>;
}
Expand description

The methods to create animations for T that satisfies FuncRequirement

Required Methods§

Source

fn func( &mut self, f: impl Fn(&Self, f64) -> Self + 'static, ) -> AnimationCell<Self>

Create a Func anim.

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§

Source§

impl<T: FuncRequirement + 'static> FuncAnim for T