pub struct ColorScienceResults {
pub xyz: Option<[f64; 3]>,
pub xy: Option<[f64; 2]>,
pub uv_prime: Option<[f64; 2]>,
pub lab: Option<[f64; 3]>,
pub cct_k: Option<f64>,
pub duv: Option<f64>,
}Expand description
Pre-computed colorimetric results derived from the spectral data.
All fields are optional and informational — the spectral data is always the authoritative source. Any subset may be present.
Fields§
§xyz: Option<[f64; 3]>CIE tristimulus values [X, Y, Z].
xy: Option<[f64; 2]>CIE 1931 chromaticity coordinates [x, y].
uv_prime: Option<[f64; 2]>CIE 1976 UCS chromaticity coordinates [u′, v′].
lab: Option<[f64; 3]>CIELAB coordinates [L*, a*, b*].
cct_k: Option<f64>Correlated color temperature in Kelvin.
duv: Option<f64>Distance from the Planckian locus (signed) in the CIE 1960 UCS.
Trait Implementations§
Source§impl Clone for ColorScienceResults
impl Clone for ColorScienceResults
Source§fn clone(&self) -> ColorScienceResults
fn clone(&self) -> ColorScienceResults
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColorScienceResults
impl Debug for ColorScienceResults
Source§impl<'de> Deserialize<'de> for ColorScienceResults
impl<'de> Deserialize<'de> for ColorScienceResults
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ColorScienceResults
impl RefUnwindSafe for ColorScienceResults
impl Send for ColorScienceResults
impl Sync for ColorScienceResults
impl Unpin for ColorScienceResults
impl UnsafeUnpin for ColorScienceResults
impl UnwindSafe for ColorScienceResults
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