[][src]Trait prisma::encoding::ChannelDecoder

pub trait ChannelDecoder {
    fn decode_channel<T>(&self, val: T) -> T
    where
        T: Float
; }

An object that can decode a color from some encoding to a linear encoding

This is a low level trait that is unlikely to be used directly

Required methods

fn decode_channel<T>(&self, val: T) -> T where
    T: Float

Decode a channel into a linear-encoding

Loading content...

Implementors

impl ChannelDecoder for LinearEncoding[src]

impl ChannelDecoder for SrgbEncoding[src]

impl<'a, T, E> ChannelDecoder for &'a EncodedColorSpace<T, E> where
    T: Float + FreeChannelScalar + PosNormalChannelScalar,
    E: ColorEncoding
[src]

impl<'a, T, E> ChannelDecoder for &'a mut EncodedColorSpace<T, E> where
    T: Float + FreeChannelScalar + PosNormalChannelScalar,
    E: ColorEncoding
[src]

impl<T> ChannelDecoder for GammaEncoding<T> where
    T: Float
[src]

impl<T, E> ChannelDecoder for EncodedColorSpace<T, E> where
    T: Float + FreeChannelScalar + PosNormalChannelScalar,
    E: ColorEncoding
[src]

Loading content...