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