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