Tween

Trait Tween 

Source
pub trait Tween: Debug + Copy {
    // Required method
    fn tween(&self, p: f32) -> f32;
}
Expand description

A trait that all ease’s need to implement to be used.

Required Methods§

Source

fn tween(&self, p: f32) -> f32

Takes a linear percentage, and returns tweened value. p = percent complete as decimal

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§