[][src]Trait prisma::encoding::ChannelEncoder

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

An object that can encode a color from a linear encoding to a different encoding

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

Required methods

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

Encode a linearly-encoded channel

Loading content...

Implementors

impl ChannelEncoder for LinearEncoding[src]

impl ChannelEncoder for SrgbEncoding[src]

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

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

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

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

Loading content...