palette::encoding

Trait IntoLinear

Source
pub trait IntoLinear<L, E> {
    // Required method
    fn into_linear(encoded: E) -> L;
}
Expand description

A transfer function to linear space.

Required Methods§

Source

fn into_linear(encoded: E) -> L

Convert the color component encoded into linear space.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl IntoLinear<f32, u8> for Srgb

Source§

impl IntoLinear<f64, u8> for Srgb

Source§

impl<T> IntoLinear<T, T> for LinearFn

Source§

impl<T> IntoLinear<T, T> for Srgb

Source§

impl<T, N> IntoLinear<T, T> for GammaFn<N>
where T: Real + One + Powf + Div<Output = T>, N: Number,