#[repr(C)]pub struct CIEXYZ {
pub X: f64,
pub Y: f64,
pub Z: f64,
}
Fields§
§X: f64
§Y: f64
§Z: f64
Implementations§
Trait Implementations§
source§impl CIEXYZExt for CIEXYZ
impl CIEXYZExt for CIEXYZ
source§fn 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.source§fn from_encoded(icc: &[u16; 3]) -> Self
fn from_encoded(icc: &[u16; 3]) -> Self
Decodes a XYZ value, encoded on ICC convention
source§impl PartialEq for CIEXYZ
impl PartialEq for CIEXYZ
impl Copy for CIEXYZ
impl StructuralPartialEq for CIEXYZ
Auto Trait Implementations§
impl RefUnwindSafe for CIEXYZ
impl Send for CIEXYZ
impl Sync for CIEXYZ
impl Unpin for CIEXYZ
impl UnwindSafe for CIEXYZ
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more