Skip to main content

Easing

Trait Easing 

Source
pub trait Easing:
    Debug
    + Send
    + Sync
    + 'static {
    // Required method
    fn ease(&self, progress: f32) -> f32;
}
Expand description

Performs easing for value interpolation.

Required Methods§

Source

fn ease(&self, progress: f32) -> f32

Eases a value ranging between zero and one. The resulting value does not need to be bounded between zero and one.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§