pub trait Gray: Mix + Sized {
const BLACK: Self;
const WHITE: Self;
// Provided method
fn gray(lightness: f32) -> Self { ... }
}
Expand description
Trait for returning a grayscale color of a provided lightness.
Required Associated Constants§
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.