MorphAnim

Trait MorphAnim 

Source
pub trait MorphAnim:
    MorphRequirement
    + Sized
    + 'static {
    // Required methods
    fn morph<F: Fn(&mut Self)>(&mut self, f: F) -> AnimationCell<Self>;
    fn morph_from(&mut self, src: Self) -> AnimationCell<Self>;
    fn morph_to(&mut self, dst: Self) -> AnimationCell<Self>;
}
Expand description

The methods to create animations for T that satisfies MorphRequirement

Required Methods§

Source

fn morph<F: Fn(&mut Self)>(&mut self, f: F) -> AnimationCell<Self>

Create a Morph anim with a func.

Source

fn morph_from(&mut self, src: Self) -> AnimationCell<Self>

Create a Morph anim from src.

Source

fn morph_to(&mut self, dst: Self) -> AnimationCell<Self>

Create a Morph anim to dst.

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: MorphRequirement + 'static> MorphAnim for T