#[non_exhaustive]pub struct LinearColor {
pub primaries: Option<LinearPrimaries>,
pub chromaticities: [[f32; 2]; 4],
pub origin: ColorOrigin,
}Expand description
What linear-light media’s RGB is: the primaries it is in, and where that was learned.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.primaries: Option<LinearPrimaries>The named primaries the chromaticities are, if any.
chromaticities: [[f32; 2]; 4]The red, green, blue, and white chromaticities, CIE 1931 [x, y].
origin: ColorOriginWhere they come from.
Trait Implementations§
Source§impl Clone for LinearColor
impl Clone for LinearColor
Source§impl Debug for LinearColor
impl Debug for LinearColor
Source§impl PartialEq for LinearColor
impl PartialEq for LinearColor
Source§impl Serialize for LinearColor
impl Serialize for LinearColor
impl StructuralPartialEq for LinearColor
Auto Trait Implementations§
impl Freeze for LinearColor
impl RefUnwindSafe for LinearColor
impl Send for LinearColor
impl Sync for LinearColor
impl Unpin for LinearColor
impl UnsafeUnpin for LinearColor
impl UnwindSafe for LinearColor
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