Trait color::ToLuma[][src]

pub trait ToLuma {
    type Standard: TransferFunction;
    fn to_luma<U: Channel>(&self) -> Luma<U, Self::Standard>;
}

Associated Types

type Standard: TransferFunction[src]

Loading content...

Required methods

fn to_luma<U: Channel>(&self) -> Luma<U, Self::Standard>[src]

Loading content...

Implementations on Foreign Types

impl ToLuma for u8[src]

type Standard = Srgb

Loading content...

Implementors

impl<T, C: ToLuma> ToLuma for AlphaColor<T, C>[src]

type Standard = <C as ToLuma>::Standard

impl<T: Channel, S: TransferFunction> ToLuma for Luma<T, S>[src]

type Standard = S

impl<T: Channel, S: TransferFunction> ToLuma for Rgb<T, S>[src]

type Standard = S

Loading content...