Color

Trait Color 

Source
pub trait Color: Copy {
    type Type;

    // Required methods
    fn complement(&self) -> Self::Type;
    fn get_rgba(&self) -> RgbaColorType;
    fn get_hsla(&self) -> HslaColorType;
    fn set_opacity(&mut self, a: f64) -> Self::Type;
}

Required Associated Types§

Required Methods§

Source

fn complement(&self) -> Self::Type

Source

fn get_rgba(&self) -> RgbaColorType

Source

fn get_hsla(&self) -> HslaColorType

Source

fn set_opacity(&mut self, a: f64) -> Self::Type

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.

Implementors§