[−][src]Trait prisma::encoding::ChannelEncoder
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,
T: Float,
Encode a linearly-encoded channel
Implementors
impl ChannelEncoder for LinearEncoding
[src]
fn encode_channel<T>(&self, val: T) -> T where
T: Float,
[src]
T: Float,
impl ChannelEncoder for SrgbEncoding
[src]
fn encode_channel<T>(&self, val: T) -> T where
T: Float,
[src]
T: Float,
impl<'a, T, E> ChannelEncoder for &'a EncodedColorSpace<T, E> where
T: Float + FreeChannelScalar + PosNormalChannelScalar,
E: ColorEncoding,
[src]
T: Float + FreeChannelScalar + PosNormalChannelScalar,
E: ColorEncoding,
fn encode_channel<U>(&self, val: U) -> U where
U: Float,
[src]
U: Float,
impl<'a, T, E> ChannelEncoder for &'a mut EncodedColorSpace<T, E> where
T: Float + FreeChannelScalar + PosNormalChannelScalar,
E: ColorEncoding,
[src]
T: Float + FreeChannelScalar + PosNormalChannelScalar,
E: ColorEncoding,
fn encode_channel<U>(&self, val: U) -> U where
U: Float,
[src]
U: Float,
impl<T> ChannelEncoder for GammaEncoding<T> where
T: Float,
[src]
T: Float,
fn encode_channel<U>(&self, val: U) -> U where
U: Float,
[src]
U: Float,
impl<T, E> ChannelEncoder for EncodedColorSpace<T, E> where
T: Float + FreeChannelScalar + PosNormalChannelScalar,
E: ColorEncoding,
[src]
T: Float + FreeChannelScalar + PosNormalChannelScalar,
E: ColorEncoding,
fn encode_channel<U>(&self, val: U) -> U where
U: Float,
[src]
U: Float,