pub trait Ease {
Show 31 methods
// Required methods
fn calc(self, f: EaseFunction) -> Self;
fn quadratic_in(self) -> Self;
fn quadratic_out(self) -> Self;
fn quadratic_in_out(self) -> Self;
fn cubic_in(self) -> Self;
fn cubic_out(self) -> Self;
fn cubic_in_out(self) -> Self;
fn quartic_in(self) -> Self;
fn quartic_out(self) -> Self;
fn quartic_in_out(self) -> Self;
fn quintic_in(self) -> Self;
fn quintic_out(self) -> Self;
fn quintic_in_out(self) -> Self;
fn sine_in(self) -> Self;
fn sine_out(self) -> Self;
fn sine_in_out(self) -> Self;
fn circular_in(self) -> Self;
fn circular_out(self) -> Self;
fn circular_in_out(self) -> Self;
fn exponential_in(self) -> Self;
fn exponential_out(self) -> Self;
fn exponential_in_out(self) -> Self;
fn elastic_in(self) -> Self;
fn elastic_out(self) -> Self;
fn elastic_in_out(self) -> Self;
fn back_in(self) -> Self;
fn back_out(self) -> Self;
fn back_in_out(self) -> Self;
fn bounce_in(self) -> Self;
fn bounce_out(self) -> Self;
fn bounce_in_out(self) -> Self;
}
Required Methods§
Sourcefn calc(self, f: EaseFunction) -> Self
fn calc(self, f: EaseFunction) -> Self
Calculate the eased value, normalized
fn quadratic_in(self) -> Self
fn quadratic_out(self) -> Self
fn quadratic_in_out(self) -> Self
fn cubic_in(self) -> Self
fn cubic_out(self) -> Self
fn cubic_in_out(self) -> Self
fn quartic_in(self) -> Self
fn quartic_out(self) -> Self
fn quartic_in_out(self) -> Self
fn quintic_in(self) -> Self
fn quintic_out(self) -> Self
fn quintic_in_out(self) -> Self
fn sine_in(self) -> Self
fn sine_out(self) -> Self
fn sine_in_out(self) -> Self
fn circular_in(self) -> Self
fn circular_out(self) -> Self
fn circular_in_out(self) -> Self
fn exponential_in(self) -> Self
fn exponential_out(self) -> Self
fn exponential_in_out(self) -> Self
fn elastic_in(self) -> Self
fn elastic_out(self) -> Self
fn elastic_in_out(self) -> Self
fn back_in(self) -> Self
fn back_out(self) -> Self
fn back_in_out(self) -> Self
fn bounce_in(self) -> Self
fn bounce_out(self) -> Self
fn bounce_in_out(self) -> Self
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.