color::color_space

Trait TransferFunction

Source
pub trait TransferFunction: 'static {
    // Required methods
    fn from_linear<T: Float>(x: T) -> T;
    fn to_linear<T: Float>(x: T) -> T;
}

Required Methods§

Source

fn from_linear<T: Float>(x: T) -> T

Source

fn to_linear<T: Float>(x: T) -> T

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§