pub trait CIEXYZExt: Sized {
// Required methods
fn adapt_to_illuminant(
&self,
source_white_point: &CIEXYZ,
illuminant: &CIEXYZ,
) -> Option<CIEXYZ>;
fn to_lab(&self, white_point: &CIEXYZ) -> CIELab;
fn from_encoded(icc: &[u16; 3]) -> Self;
}
Expand description
Chromatic adaptation
Required Methods§
Sourcefn adapt_to_illuminant(
&self,
source_white_point: &CIEXYZ,
illuminant: &CIEXYZ,
) -> Option<CIEXYZ>
fn adapt_to_illuminant( &self, source_white_point: &CIEXYZ, illuminant: &CIEXYZ, ) -> Option<CIEXYZ>
Adapts a color to a given illuminant. Original color is expected to have
a source_white_point
white point.
Sourcefn from_encoded(icc: &[u16; 3]) -> Self
fn from_encoded(icc: &[u16; 3]) -> Self
Decodes a XYZ value, encoded on ICC convention
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.