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§
Sourcefn morph<F: Fn(&mut Self)>(&mut self, f: F) -> AnimationCell<Self>
fn morph<F: Fn(&mut Self)>(&mut self, f: F) -> AnimationCell<Self>
Create a Morph anim with a func.
Sourcefn morph_from(&mut self, src: Self) -> AnimationCell<Self>
fn morph_from(&mut self, src: Self) -> AnimationCell<Self>
Create a Morph anim from src.
Sourcefn morph_to(&mut self, dst: Self) -> AnimationCell<Self>
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.