Struct cint::EncodedDisplayP3 [−][src]
#[repr(C)]pub struct EncodedDisplayP3<ComponentTy> { pub r: ComponentTy, pub g: ComponentTy, pub b: ComponentTy, }
Expand description
A color in the Display P3 (aka P3 D65) color space.
This color space uses the P3 primaries and D65 white point and sRGB transfer functions. This encoded version is nonlinear, with the sRGB OETF applied.
Fields
r: ComponentTyExpand description
The red component.
g: ComponentTyExpand description
The green component.
b: ComponentTyExpand description
The blue component.
Trait Implementations
impl<ComponentTy> AsRef<[ComponentTy; 3]> for EncodedDisplayP3<ComponentTy>[src]
impl<ComponentTy> AsRef<[ComponentTy; 3]> for EncodedDisplayP3<ComponentTy>[src]impl<ComponentTy: Clone> Clone for EncodedDisplayP3<ComponentTy>[src]
impl<ComponentTy: Clone> Clone for EncodedDisplayP3<ComponentTy>[src]fn clone(&self) -> EncodedDisplayP3<ComponentTy>[src]
fn clone(&self) -> EncodedDisplayP3<ComponentTy>[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl<ComponentTy: Debug> Debug for EncodedDisplayP3<ComponentTy>[src]
impl<ComponentTy: Debug> Debug for EncodedDisplayP3<ComponentTy>[src]impl<ComponentTy> From<[ComponentTy; 3]> for EncodedDisplayP3<ComponentTy>[src]
impl<ComponentTy> From<[ComponentTy; 3]> for EncodedDisplayP3<ComponentTy>[src]fn from([r, g, b]: [ComponentTy; 3]) -> EncodedDisplayP3<ComponentTy>[src]
fn from([r, g, b]: [ComponentTy; 3]) -> EncodedDisplayP3<ComponentTy>[src]Performs the conversion.
impl<ComponentTy> From<ColorAlpha<ComponentTy, EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy>[src]
impl<ComponentTy> From<ColorAlpha<ComponentTy, EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy>[src]fn from(
col_alpha: ColorAlpha<ComponentTy, EncodedDisplayP3<ComponentTy>>
) -> EncodedDisplayP3<ComponentTy>[src]
fn from(
col_alpha: ColorAlpha<ComponentTy, EncodedDisplayP3<ComponentTy>>
) -> EncodedDisplayP3<ComponentTy>[src]Performs the conversion.
impl<ComponentTy> From<PremultipliedColorAlpha<ComponentTy, EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy>[src]
impl<ComponentTy> From<PremultipliedColorAlpha<ComponentTy, EncodedDisplayP3<ComponentTy>>> for EncodedDisplayP3<ComponentTy>[src]fn from(
col_alpha: PremultipliedColorAlpha<ComponentTy, EncodedDisplayP3<ComponentTy>>
) -> EncodedDisplayP3<ComponentTy>[src]
fn from(
col_alpha: PremultipliedColorAlpha<ComponentTy, EncodedDisplayP3<ComponentTy>>
) -> EncodedDisplayP3<ComponentTy>[src]Performs the conversion.
impl<ComponentTy: Hash> Hash for EncodedDisplayP3<ComponentTy>[src]
impl<ComponentTy: Hash> Hash for EncodedDisplayP3<ComponentTy>[src]impl<ComponentTy> Into<[ComponentTy; 3]> for EncodedDisplayP3<ComponentTy>[src]
impl<ComponentTy> Into<[ComponentTy; 3]> for EncodedDisplayP3<ComponentTy>[src]impl<ComponentTy: Ord> Ord for EncodedDisplayP3<ComponentTy>[src]
impl<ComponentTy: Ord> Ord for EncodedDisplayP3<ComponentTy>[src]impl<ComponentTy: PartialEq> PartialEq<EncodedDisplayP3<ComponentTy>> for EncodedDisplayP3<ComponentTy>[src]
impl<ComponentTy: PartialEq> PartialEq<EncodedDisplayP3<ComponentTy>> for EncodedDisplayP3<ComponentTy>[src]fn eq(&self, other: &EncodedDisplayP3<ComponentTy>) -> bool[src]
fn eq(&self, other: &EncodedDisplayP3<ComponentTy>) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &EncodedDisplayP3<ComponentTy>) -> bool[src]
fn ne(&self, other: &EncodedDisplayP3<ComponentTy>) -> bool[src]This method tests for !=.
impl<ComponentTy: PartialOrd> PartialOrd<EncodedDisplayP3<ComponentTy>> for EncodedDisplayP3<ComponentTy>[src]
impl<ComponentTy: PartialOrd> PartialOrd<EncodedDisplayP3<ComponentTy>> for EncodedDisplayP3<ComponentTy>[src]fn partial_cmp(&self, other: &EncodedDisplayP3<ComponentTy>) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &EncodedDisplayP3<ComponentTy>) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<ComponentTy: Zeroable> Zeroable for EncodedDisplayP3<ComponentTy>[src]
impl<ComponentTy: Zeroable> Zeroable for EncodedDisplayP3<ComponentTy>[src]impl<ComponentTy: Copy> Copy for EncodedDisplayP3<ComponentTy>[src]
impl<ComponentTy: Eq> Eq for EncodedDisplayP3<ComponentTy>[src]
impl<ComponentTy: Pod> Pod for EncodedDisplayP3<ComponentTy>[src]
impl<ComponentTy> StructuralEq for EncodedDisplayP3<ComponentTy>[src]
impl<ComponentTy> StructuralPartialEq for EncodedDisplayP3<ComponentTy>[src]
Auto Trait Implementations
impl<ComponentTy> Send for EncodedDisplayP3<ComponentTy> where
ComponentTy: Send,
ComponentTy: Send,
impl<ComponentTy> Sync for EncodedDisplayP3<ComponentTy> where
ComponentTy: Sync,
ComponentTy: Sync,
impl<ComponentTy> Unpin for EncodedDisplayP3<ComponentTy> where
ComponentTy: Unpin,
ComponentTy: Unpin,