pub trait Lerp: Bounded + NumCast {
type Ratio: Primitive;
// Provided method
fn lerp(a: Self, b: Self, ratio: Self::Ratio) -> Self { ... }
}
Expand description
Linear interpolation without involving floating numbers.
Required Associated Types§
Provided Methods§
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.