Skip to main content

ToColorColor

Trait ToColorColor 

Source
pub trait ToColorColor {
    // Required method
    fn as_color_color(&self) -> AlphaColor<Srgb>;
}

Required Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl ToColorColor for AbsoluteColor

Implementors§