Struct cint::DciP3 [−][src]
#[repr(C)]pub struct DciP3<ComponentTy> { pub r: ComponentTy, pub g: ComponentTy, pub b: ComponentTy, }
Expand description
A color in the DCI-P3 (aka P3 DCI and P3 D60) color space.
If you are looking for the P3 which is used on new Apple displays, see
DisplayP3
instead.
This color space uses the P3 primaries and D60 white point.
Fields
r: ComponentTy
Expand description
The red component.
g: ComponentTy
Expand description
The green component.
b: ComponentTy
Expand description
The blue component.
Trait Implementations
impl<ComponentTy> From<ColorAlpha<ComponentTy, DciP3<ComponentTy>>> for DciP3<ComponentTy>
[src]
impl<ComponentTy> From<ColorAlpha<ComponentTy, DciP3<ComponentTy>>> for DciP3<ComponentTy>
[src]fn from(
col_alpha: ColorAlpha<ComponentTy, DciP3<ComponentTy>>
) -> DciP3<ComponentTy>
[src]
fn from(
col_alpha: ColorAlpha<ComponentTy, DciP3<ComponentTy>>
) -> DciP3<ComponentTy>
[src]Performs the conversion.
impl<ComponentTy> From<PremultipliedColorAlpha<ComponentTy, DciP3<ComponentTy>>> for DciP3<ComponentTy>
[src]
impl<ComponentTy> From<PremultipliedColorAlpha<ComponentTy, DciP3<ComponentTy>>> for DciP3<ComponentTy>
[src]fn from(
col_alpha: PremultipliedColorAlpha<ComponentTy, DciP3<ComponentTy>>
) -> DciP3<ComponentTy>
[src]
fn from(
col_alpha: PremultipliedColorAlpha<ComponentTy, DciP3<ComponentTy>>
) -> DciP3<ComponentTy>
[src]Performs the conversion.
impl<ComponentTy: Ord> Ord for DciP3<ComponentTy>
[src]
impl<ComponentTy: Ord> Ord for DciP3<ComponentTy>
[src]impl<ComponentTy: PartialOrd> PartialOrd<DciP3<ComponentTy>> for DciP3<ComponentTy>
[src]
impl<ComponentTy: PartialOrd> PartialOrd<DciP3<ComponentTy>> for DciP3<ComponentTy>
[src]fn partial_cmp(&self, other: &DciP3<ComponentTy>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &DciP3<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) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.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) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.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 DciP3<ComponentTy>
[src]
impl<ComponentTy: Eq> Eq for DciP3<ComponentTy>
[src]
impl<ComponentTy: Pod> Pod for DciP3<ComponentTy>
[src]
impl<ComponentTy> StructuralEq for DciP3<ComponentTy>
[src]
impl<ComponentTy> StructuralPartialEq for DciP3<ComponentTy>
[src]
Auto Trait Implementations
impl<ComponentTy> Send for DciP3<ComponentTy> where
ComponentTy: Send,
ComponentTy: Send,
impl<ComponentTy> Sync for DciP3<ComponentTy> where
ComponentTy: Sync,
ComponentTy: Sync,
impl<ComponentTy> Unpin for DciP3<ComponentTy> where
ComponentTy: Unpin,
ComponentTy: Unpin,