Struct cint::CieLab [−][src]
#[repr(C)]pub struct CieLab<ComponentTy> { pub l: ComponentTy, pub a: ComponentTy, pub b: ComponentTy, }
Expand description
A color in the CIE L*a*b color space.
Fields
l: ComponentTy
Expand description
The L (lightness) component. Varies from 0 to 100.
a: ComponentTy
Expand description
The a component, representing green-red chroma difference.
b: ComponentTy
Expand description
The b component, representing blue-yellow chroma difference.
Trait Implementations
impl<ComponentTy> From<ColorAlpha<ComponentTy, CieLab<ComponentTy>>> for CieLab<ComponentTy>
[src]
impl<ComponentTy> From<ColorAlpha<ComponentTy, CieLab<ComponentTy>>> for CieLab<ComponentTy>
[src]fn from(
col_alpha: ColorAlpha<ComponentTy, CieLab<ComponentTy>>
) -> CieLab<ComponentTy>
[src]
fn from(
col_alpha: ColorAlpha<ComponentTy, CieLab<ComponentTy>>
) -> CieLab<ComponentTy>
[src]Performs the conversion.
impl<ComponentTy> From<PremultipliedColorAlpha<ComponentTy, CieLab<ComponentTy>>> for CieLab<ComponentTy>
[src]
impl<ComponentTy> From<PremultipliedColorAlpha<ComponentTy, CieLab<ComponentTy>>> for CieLab<ComponentTy>
[src]fn from(
col_alpha: PremultipliedColorAlpha<ComponentTy, CieLab<ComponentTy>>
) -> CieLab<ComponentTy>
[src]
fn from(
col_alpha: PremultipliedColorAlpha<ComponentTy, CieLab<ComponentTy>>
) -> CieLab<ComponentTy>
[src]Performs the conversion.
impl<ComponentTy: Ord> Ord for CieLab<ComponentTy>
[src]
impl<ComponentTy: Ord> Ord for CieLab<ComponentTy>
[src]impl<ComponentTy: PartialOrd> PartialOrd<CieLab<ComponentTy>> for CieLab<ComponentTy>
[src]
impl<ComponentTy: PartialOrd> PartialOrd<CieLab<ComponentTy>> for CieLab<ComponentTy>
[src]fn partial_cmp(&self, other: &CieLab<ComponentTy>) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &CieLab<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 CieLab<ComponentTy>
[src]
impl<ComponentTy: Eq> Eq for CieLab<ComponentTy>
[src]
impl<ComponentTy: Pod> Pod for CieLab<ComponentTy>
[src]
impl<ComponentTy> StructuralEq for CieLab<ComponentTy>
[src]
impl<ComponentTy> StructuralPartialEq for CieLab<ComponentTy>
[src]
Auto Trait Implementations
impl<ComponentTy> Send for CieLab<ComponentTy> where
ComponentTy: Send,
ComponentTy: Send,
impl<ComponentTy> Sync for CieLab<ComponentTy> where
ComponentTy: Sync,
ComponentTy: Sync,
impl<ComponentTy> Unpin for CieLab<ComponentTy> where
ComponentTy: Unpin,
ComponentTy: Unpin,