Skip to main content

Easing

Trait Easing 

Source
pub trait Easing {
    // Required method
    fn ease(&self, p: i32) -> i32;
}
Expand description

A curve: how far along a value is, p of the way through.

Required Methods§

Source

fn ease(&self, p: i32) -> i32

The curve at p, in 1/65536. p below 0 counts as 0 and p above ONE as ONE. The value may go past 0 and ONE on the way (an overshoot), and should be 0 at 0 and ONE at ONE.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§