pub struct XyzValue {
pub x: f32,
pub y: f32,
pub z: f32,
}
Expand description
§CIE 1931 XYZ
Further Reading: https://en.wikipedia.org/wiki/CIE_1931_color_space
Value | Color | Range |
---|---|---|
X | RGB | 0.0 <---> 1.0 |
Y | Luminance | 0.0 <---> 1.0 |
Z | Blue | 0.0 <---> 1.0 |
Fields§
§x: f32
X Value
y: f32
Y Value
z: f32
Z Value
Implementations§
Trait Implementations§
source§impl PartialEq for XyzValue
impl PartialEq for XyzValue
source§impl Validate for XyzValue
impl Validate for XyzValue
source§fn validate(self) -> Result<Self, ValueError>
fn validate(self) -> Result<Self, ValueError>
Return
Err()
if the values are invalidimpl Copy for XyzValue
impl StructuralPartialEq for XyzValue
Auto Trait Implementations§
impl Freeze for XyzValue
impl RefUnwindSafe for XyzValue
impl Send for XyzValue
impl Sync for XyzValue
impl Unpin for XyzValue
impl UnwindSafe for XyzValue
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