pub trait Color {
const TYPE: ColorType;
// Provided methods
fn get_rgba(&self) -> ColorRGBA { ... }
fn get_hsva(&self) -> ColorHSVA { ... }
fn get_hsla(&self) -> ColorHSLA { ... }
fn get_hsia(&self) -> ColorHSIA { ... }
}Expand description
Defines a single color which can be expressed in RGBA
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.