[][src]Trait prisma::color_space::ConvertToXyz

pub trait ConvertToXyz<T, CIn, EIn>: ColorSpace<T> where
    T: Float,
    CIn: TranscodableColor,
    EIn: ColorEncoding
{ type OutputColor: Color; fn convert_to_xyz(
        &self,
        color: &EncodedColor<CIn, EIn>
    ) -> Self::OutputColor; }

An object that can convert a color into XYZ

Associated Types

type OutputColor: Color

The type to output. Always some form of Xyz

Loading content...

Required methods

fn convert_to_xyz(&self, color: &EncodedColor<CIn, EIn>) -> Self::OutputColor

Convert color into the XYZ space

Loading content...

Implementations on Foreign Types

impl<T, E, EIn> ConvertToXyz<T, Rgb<T>, EIn> for Rc<EncodedColorSpace<T, E>> where
    T: PosNormalChannelScalar + FreeChannelScalar + Float + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>,
    E: ColorEncoding + PartialEq,
    EIn: ColorEncoding + PartialEq
[src]

type OutputColor = Xyz<T>

impl<T, E, EIn> ConvertToXyz<T, Alpha<T, Rgb<T>>, EIn> for Rc<EncodedColorSpace<T, E>> where
    T: PosNormalChannelScalar + FreeChannelScalar + Float + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>,
    E: ColorEncoding + PartialEq,
    EIn: ColorEncoding + PartialEq
[src]

type OutputColor = Xyza<T>

impl<T, E, EIn> ConvertToXyz<T, Rgb<T>, EIn> for Arc<EncodedColorSpace<T, E>> where
    T: PosNormalChannelScalar + FreeChannelScalar + Float + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>,
    E: ColorEncoding + PartialEq,
    EIn: ColorEncoding + PartialEq
[src]

type OutputColor = Xyz<T>

impl<T, E, EIn> ConvertToXyz<T, Alpha<T, Rgb<T>>, EIn> for Arc<EncodedColorSpace<T, E>> where
    T: PosNormalChannelScalar + FreeChannelScalar + Float + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>,
    E: ColorEncoding + PartialEq,
    EIn: ColorEncoding + PartialEq
[src]

type OutputColor = Xyza<T>

Loading content...

Implementors

impl<'a, T, E, EIn> ConvertToXyz<T, Alpha<T, Rgb<T>>, EIn> for &'a EncodedColorSpace<T, E> where
    T: PosNormalChannelScalar + FreeChannelScalar + Float + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>,
    E: ColorEncoding + PartialEq,
    EIn: ColorEncoding + PartialEq
[src]

type OutputColor = Xyza<T>

impl<'a, T, E, EIn> ConvertToXyz<T, Rgb<T>, EIn> for &'a EncodedColorSpace<T, E> where
    T: PosNormalChannelScalar + FreeChannelScalar + Float + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>,
    E: ColorEncoding + PartialEq,
    EIn: ColorEncoding + PartialEq
[src]

type OutputColor = Xyz<T>

impl<T, E> ConvertToXyz<T, Alpha<T, Rgb<T>>, E> for SRgb<T> where
    T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>,
    E: ColorEncoding
[src]

type OutputColor = Xyza<T>

impl<T, E> ConvertToXyz<T, Rgb<T>, E> for SRgb<T> where
    T: Float + FreeChannelScalar + PosNormalChannelScalar + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>,
    E: ColorEncoding
[src]

type OutputColor = Xyz<T>

impl<T, E, EIn> ConvertToXyz<T, Alpha<T, Rgb<T>>, EIn> for EncodedColorSpace<T, E> where
    T: PosNormalChannelScalar + FreeChannelScalar + Float + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>,
    E: ColorEncoding + PartialEq,
    EIn: ColorEncoding + PartialEq
[src]

type OutputColor = Xyza<T>

impl<T, E, EIn> ConvertToXyz<T, Rgb<T>, EIn> for EncodedColorSpace<T, E> where
    T: PosNormalChannelScalar + FreeChannelScalar + Float + ChannelFormatCast<f64>,
    f64: ChannelFormatCast<T>,
    E: ColorEncoding + PartialEq,
    EIn: ColorEncoding + PartialEq
[src]

type OutputColor = Xyz<T>

Loading content...