Skip to main content

MorphAnim

Trait MorphAnim 

Source
pub trait MorphAnim:
    MorphRequirement
    + Sized
    + 'static {
    // Required methods
    fn morph<F: Fn(&mut Self)>(&mut self, f: F) -> Morph<Self>;
    fn morph_from(&mut self, src: Self) -> Morph<Self>;
    fn morph_to(&mut self, dst: Self) -> Morph<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) -> Morph<Self>

Create a Morph anim with a func.

Source

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

Create a Morph anim from src.

Source

fn morph_to(&mut self, dst: Self) -> Morph<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".

Implementors§

Source§

impl<T: MorphRequirement + 'static> MorphAnim for T