Trait color::ToLuma

source ·
pub trait ToLuma {
    type Standard: TransferFunction;

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

Required Associated Types§

Required Methods§

source

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

Implementations on Foreign Types§

source§

impl ToLuma for u8

§

type Standard = Srgb

source§

fn to_luma<U: Channel>(&self) -> Luma<U, Srgb>

Implementors§

source§

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

§

type Standard = <C as ToLuma>::Standard

source§

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

§

type Standard = S

source§

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

§

type Standard = S