pub trait Lerpable: Sized + Clone {
// Required method
fn lerpify<T: IsLerpingMethod>(&self, other: &Self, pct: &T) -> Self;
// Provided method
fn lerp_partial<T: IsLerpingMethod>(&self, _pct: T) -> Self { ... }
}Required Methods§
fn lerpify<T: IsLerpingMethod>(&self, other: &Self, pct: &T) -> Self
Provided Methods§
fn lerp_partial<T: IsLerpingMethod>(&self, _pct: T) -> 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.