pub trait ToColorColor {
// Required method
fn as_color_color(&self) -> AlphaColor<Srgb>;
}Required Methods§
Sourcefn as_color_color(&self) -> AlphaColor<Srgb>
fn as_color_color(&self) -> AlphaColor<Srgb>
Converts a color into the AlphaColor<Srgb> type from the color crate
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".