Trait color::ToRgba

source ·
pub trait ToRgba {
    type Standard: TransferFunction;

    // Required method
    fn to_rgba<T: Channel>(&self) -> Rgba<T, Self::Standard>;
}

Required Associated Types§

Required Methods§

source

fn to_rgba<T: Channel>(&self) -> Rgba<T, Self::Standard>

Implementors§

source§

impl<T: Clone + Channel, S: TransferFunction> ToRgba for Luma<T, S>

§

type Standard = S

source§

impl<T: Clone + FloatChannel, S: TransferFunction> ToRgba for Hsl<T, S>

§

type Standard = S

source§

impl<T: Clone + FloatChannel, S: TransferFunction> ToRgba for Hsv<T, S>

§

type Standard = S

source§

impl<T: Channel, C: ToRgb> ToRgba for AlphaColor<T, C>

§

type Standard = <C as ToRgb>::Standard

source§

impl<T: Channel, S: TransferFunction> ToRgba for Rgb<T, S>

§

type Standard = S