Struct cint::EncodedBt2020 [−][src]
#[repr(C)]pub struct EncodedBt2020<ComponentTy> { pub r: ComponentTy, pub g: ComponentTy, pub b: ComponentTy, }
Expand description
A color in the encoded BT.2020 color space.
This color space uses the BT.2020 primaries and D65 white point and the BT.2020 transfer functions (equivalent to BT.601 transfer functions but with higher precision). This encoded version is nonlinear, with the BT.2020/BT.601 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 EncodedBt2020<ComponentTy>[src]
impl<ComponentTy> AsRef<[ComponentTy; 3]> for EncodedBt2020<ComponentTy>[src]impl<ComponentTy: Clone> Clone for EncodedBt2020<ComponentTy>[src]
impl<ComponentTy: Clone> Clone for EncodedBt2020<ComponentTy>[src]fn clone(&self) -> EncodedBt2020<ComponentTy>[src]
fn clone(&self) -> EncodedBt2020<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 EncodedBt2020<ComponentTy>[src]
impl<ComponentTy: Debug> Debug for EncodedBt2020<ComponentTy>[src]impl<ComponentTy> From<[ComponentTy; 3]> for EncodedBt2020<ComponentTy>[src]
impl<ComponentTy> From<[ComponentTy; 3]> for EncodedBt2020<ComponentTy>[src]fn from([r, g, b]: [ComponentTy; 3]) -> EncodedBt2020<ComponentTy>[src]
fn from([r, g, b]: [ComponentTy; 3]) -> EncodedBt2020<ComponentTy>[src]Performs the conversion.
impl<ComponentTy> From<ColorAlpha<ComponentTy, EncodedBt2020<ComponentTy>>> for EncodedBt2020<ComponentTy>[src]
impl<ComponentTy> From<ColorAlpha<ComponentTy, EncodedBt2020<ComponentTy>>> for EncodedBt2020<ComponentTy>[src]fn from(
col_alpha: ColorAlpha<ComponentTy, EncodedBt2020<ComponentTy>>
) -> EncodedBt2020<ComponentTy>[src]
fn from(
col_alpha: ColorAlpha<ComponentTy, EncodedBt2020<ComponentTy>>
) -> EncodedBt2020<ComponentTy>[src]Performs the conversion.
impl<ComponentTy> From<PremultipliedColorAlpha<ComponentTy, EncodedBt2020<ComponentTy>>> for EncodedBt2020<ComponentTy>[src]
impl<ComponentTy> From<PremultipliedColorAlpha<ComponentTy, EncodedBt2020<ComponentTy>>> for EncodedBt2020<ComponentTy>[src]fn from(
col_alpha: PremultipliedColorAlpha<ComponentTy, EncodedBt2020<ComponentTy>>
) -> EncodedBt2020<ComponentTy>[src]
fn from(
col_alpha: PremultipliedColorAlpha<ComponentTy, EncodedBt2020<ComponentTy>>
) -> EncodedBt2020<ComponentTy>[src]Performs the conversion.
impl<ComponentTy: Hash> Hash for EncodedBt2020<ComponentTy>[src]
impl<ComponentTy: Hash> Hash for EncodedBt2020<ComponentTy>[src]impl<ComponentTy> Into<[ComponentTy; 3]> for EncodedBt2020<ComponentTy>[src]
impl<ComponentTy> Into<[ComponentTy; 3]> for EncodedBt2020<ComponentTy>[src]impl<ComponentTy: Ord> Ord for EncodedBt2020<ComponentTy>[src]
impl<ComponentTy: Ord> Ord for EncodedBt2020<ComponentTy>[src]impl<ComponentTy: PartialEq> PartialEq<EncodedBt2020<ComponentTy>> for EncodedBt2020<ComponentTy>[src]
impl<ComponentTy: PartialEq> PartialEq<EncodedBt2020<ComponentTy>> for EncodedBt2020<ComponentTy>[src]fn eq(&self, other: &EncodedBt2020<ComponentTy>) -> bool[src]
fn eq(&self, other: &EncodedBt2020<ComponentTy>) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &EncodedBt2020<ComponentTy>) -> bool[src]
fn ne(&self, other: &EncodedBt2020<ComponentTy>) -> bool[src]This method tests for !=.
impl<ComponentTy: PartialOrd> PartialOrd<EncodedBt2020<ComponentTy>> for EncodedBt2020<ComponentTy>[src]
impl<ComponentTy: PartialOrd> PartialOrd<EncodedBt2020<ComponentTy>> for EncodedBt2020<ComponentTy>[src]fn partial_cmp(&self, other: &EncodedBt2020<ComponentTy>) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &EncodedBt2020<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 EncodedBt2020<ComponentTy>[src]
impl<ComponentTy: Zeroable> Zeroable for EncodedBt2020<ComponentTy>[src]impl<ComponentTy: Copy> Copy for EncodedBt2020<ComponentTy>[src]
impl<ComponentTy: Eq> Eq for EncodedBt2020<ComponentTy>[src]
impl<ComponentTy: Pod> Pod for EncodedBt2020<ComponentTy>[src]
impl<ComponentTy> StructuralEq for EncodedBt2020<ComponentTy>[src]
impl<ComponentTy> StructuralPartialEq for EncodedBt2020<ComponentTy>[src]
Auto Trait Implementations
impl<ComponentTy> Send for EncodedBt2020<ComponentTy> where
ComponentTy: Send,
ComponentTy: Send,
impl<ComponentTy> Sync for EncodedBt2020<ComponentTy> where
ComponentTy: Sync,
ComponentTy: Sync,
impl<ComponentTy> Unpin for EncodedBt2020<ComponentTy> where
ComponentTy: Unpin,
ComponentTy: Unpin,