cosmic::cosmic_theme::palette::encoding

Trait FromLinear

Source
pub trait FromLinear<L, E> {
    // Required method
    fn from_linear(linear: L) -> E;
}
Expand description

A transfer function from linear space.

Required Methods§

Source

fn from_linear(linear: L) -> E

Convert the color component linear from 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 FromLinear<f32, u8> for Srgb

Source§

impl FromLinear<f64, u8> for Srgb

Source§

impl<T> FromLinear<T, T> for LinearFn

Source§

impl<T> FromLinear<T, T> for Srgb

Source§

impl<T, N> FromLinear<T, T> for GammaFn<N>
where T: Real + Powf, N: Number,