pub struct ColorScience {
pub illuminant: Option<String>,
pub illuminant_custom_sd: Option<CustomIlluminantSd>,
pub cie_observer: Option<String>,
pub white_reference: Option<WhiteReference>,
pub results: Option<ColorScienceResults>,
}Expand description
Metadata required for CIE colorimetry and color-science calculations.
Fields§
§illuminant: Option<String>§illuminant_custom_sd: Option<CustomIlluminantSd>§cie_observer: Option<String>§white_reference: Option<WhiteReference>§results: Option<ColorScienceResults>Trait Implementations§
Source§impl Clone for ColorScience
impl Clone for ColorScience
Source§fn clone(&self) -> ColorScience
fn clone(&self) -> ColorScience
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 ColorScience
impl Debug for ColorScience
Source§impl<'de> Deserialize<'de> for ColorScience
impl<'de> Deserialize<'de> for ColorScience
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 ColorScience
impl RefUnwindSafe for ColorScience
impl Send for ColorScience
impl Sync for ColorScience
impl Unpin for ColorScience
impl UnsafeUnpin for ColorScience
impl UnwindSafe for ColorScience
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