color

Trait ToLab

Source
pub trait ToLab {
    type WhitePoint: WhitePoint;

    // Required method
    fn to_lab<T: Channel>(&self) -> Lab<T, Self::WhitePoint>;
}

Required Associated Types§

Required Methods§

Source

fn to_lab<T: Channel>(&self) -> Lab<T, Self::WhitePoint>

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<T: Channel + Float + NumCast, Wp: WhitePoint> ToLab for Xyz<T, Wp>