Struct cint::DisplayP3 [−][src]
#[repr(C)]pub struct DisplayP3<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 version is linear, without 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> From<ColorAlpha<ComponentTy, DisplayP3<ComponentTy>>> for DisplayP3<ComponentTy>[src]
impl<ComponentTy> From<ColorAlpha<ComponentTy, DisplayP3<ComponentTy>>> for DisplayP3<ComponentTy>[src]fn from(
col_alpha: ColorAlpha<ComponentTy, DisplayP3<ComponentTy>>
) -> DisplayP3<ComponentTy>[src]
fn from(
col_alpha: ColorAlpha<ComponentTy, DisplayP3<ComponentTy>>
) -> DisplayP3<ComponentTy>[src]Performs the conversion.
impl<ComponentTy> From<PremultipliedColorAlpha<ComponentTy, DisplayP3<ComponentTy>>> for DisplayP3<ComponentTy>[src]
impl<ComponentTy> From<PremultipliedColorAlpha<ComponentTy, DisplayP3<ComponentTy>>> for DisplayP3<ComponentTy>[src]fn from(
col_alpha: PremultipliedColorAlpha<ComponentTy, DisplayP3<ComponentTy>>
) -> DisplayP3<ComponentTy>[src]
fn from(
col_alpha: PremultipliedColorAlpha<ComponentTy, DisplayP3<ComponentTy>>
) -> DisplayP3<ComponentTy>[src]Performs the conversion.
impl<ComponentTy: Ord> Ord for DisplayP3<ComponentTy>[src]
impl<ComponentTy: Ord> Ord for DisplayP3<ComponentTy>[src]impl<ComponentTy: PartialOrd> PartialOrd<DisplayP3<ComponentTy>> for DisplayP3<ComponentTy>[src]
impl<ComponentTy: PartialOrd> PartialOrd<DisplayP3<ComponentTy>> for DisplayP3<ComponentTy>[src]fn partial_cmp(&self, other: &DisplayP3<ComponentTy>) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &DisplayP3<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: Copy> Copy for DisplayP3<ComponentTy>[src]
impl<ComponentTy: Eq> Eq for DisplayP3<ComponentTy>[src]
impl<ComponentTy: Pod> Pod for DisplayP3<ComponentTy>[src]
impl<ComponentTy> StructuralEq for DisplayP3<ComponentTy>[src]
impl<ComponentTy> StructuralPartialEq for DisplayP3<ComponentTy>[src]
Auto Trait Implementations
impl<ComponentTy> Send for DisplayP3<ComponentTy> where
ComponentTy: Send,
ComponentTy: Send,
impl<ComponentTy> Sync for DisplayP3<ComponentTy> where
ComponentTy: Sync,
ComponentTy: Sync,
impl<ComponentTy> Unpin for DisplayP3<ComponentTy> where
ComponentTy: Unpin,
ComponentTy: Unpin,