Trait color::ToRgb

source ·
pub trait ToRgb {
    type Standard: TransferFunction;

    // Required method
    fn to_rgb<U: Channel>(&self) -> Rgb<U, Self::Standard>;
}

Required Associated Types§

Required Methods§

source

fn to_rgb<U: Channel>(&self) -> Rgb<U, Self::Standard>

Implementations on Foreign Types§

source§

impl ToRgb for u32

§

type Standard = Srgb

source§

fn to_rgb<U: Channel>(&self) -> Rgb<U, Srgb>

Implementors§

source§

impl ToRgb for OkHsl

source§

impl ToRgb for OkHsv

source§

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

§

type Standard = <C as ToRgb>::Standard

source§

impl<T: Clone + Channel + NumCast + Num, S: TransferFunction> ToRgb for Hsl<T, S>

§

type Standard = S

source§

impl<T: Clone + Channel + NumCast + Num, S: TransferFunction> ToRgb for Hsv<T, S>

§

type Standard = S

source§

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

§

type Standard = S

source§

impl<T: Channel + NumCast + Float> ToRgb for OkLab<T>

source§

impl<T: Channel + Float + Clone> ToRgb for Xyz<T, D65>

source§

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

§

type Standard = S