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