Skip to main content

IntoLinear

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 AdobeRgb

Source§

impl IntoLinear<f32, u8> for P3Gamma

Source§

impl IntoLinear<f32, u8> for RecOetf

Source§

impl IntoLinear<f32, u8> for Srgb

Source§

impl IntoLinear<f64, u8> for AdobeRgb

Source§

impl IntoLinear<f64, u8> for P3Gamma

Source§

impl IntoLinear<f64, u8> for RecOetf

Source§

impl IntoLinear<f64, u8> for Srgb

Source§

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

Source§

impl<T> IntoLinear<T, T> for AdobeRgb
where T: Real + Powf,

Source§

impl<T> IntoLinear<T, T> for P3Gamma
where T: Real + Powf,

Source§

impl<T> IntoLinear<T, T> for ProPhotoRgb

Source§

impl<T> IntoLinear<T, T> for RecOetf

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,