pub trait Color<T>: Copy {
// Required methods
fn clamp_s(self, lo: T, hi: T) -> Self;
fn clamp_c(self, lo: Self, hi: Self) -> Self;
fn inverse(self) -> Self;
fn mix(self, other: Self, value: T) -> Self;
}
Required Methods§
fn clamp_s(self, lo: T, hi: T) -> Self
fn clamp_c(self, lo: Self, hi: Self) -> Self
fn inverse(self) -> Self
fn mix(self, other: Self, value: 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.