Struct cint::CieLChA [−][src]
#[repr(C)]pub struct CieLChA<ComponentTy, AlphaState> { pub l: ComponentTy, pub c: ComponentTy, pub h: ComponentTy, pub alpha: ComponentTy, // some fields omitted }
Expand description
A color in the CIE L*C*h color space.
This is type has an alpha channel, and so is paramaterized by both
a ComponentTy, as with any color type, but also an AlphaState,
which symbolizes whether the other color components have been
Premultiplied with the alpha channel or are Separate from it.
Fields
l: ComponentTyExpand description
The L (lightness) component. Varies from 0 to 100.
c: ComponentTyExpand description
The C (chroma) component. Varies from 0 to a hue dependent maximum.
h: ComponentTyExpand description
The h (hue) component. Varies from -PI to PI.
alpha: ComponentTyExpand description
The alpha component.
Trait Implementations
impl<ComponentTy: Ord, AlphaState: Ord> Ord for CieLChA<ComponentTy, AlphaState>[src]
impl<ComponentTy: Ord, AlphaState: Ord> Ord for CieLChA<ComponentTy, AlphaState>[src]impl<ComponentTy: PartialEq, AlphaState: PartialEq> PartialEq<CieLChA<ComponentTy, AlphaState>> for CieLChA<ComponentTy, AlphaState>[src]
impl<ComponentTy: PartialEq, AlphaState: PartialEq> PartialEq<CieLChA<ComponentTy, AlphaState>> for CieLChA<ComponentTy, AlphaState>[src]impl<ComponentTy: PartialOrd, AlphaState: PartialOrd> PartialOrd<CieLChA<ComponentTy, AlphaState>> for CieLChA<ComponentTy, AlphaState>[src]
impl<ComponentTy: PartialOrd, AlphaState: PartialOrd> PartialOrd<CieLChA<ComponentTy, AlphaState>> for CieLChA<ComponentTy, AlphaState>[src]fn partial_cmp(
&self,
other: &CieLChA<ComponentTy, AlphaState>
) -> Option<Ordering>[src]
fn partial_cmp(
&self,
other: &CieLChA<ComponentTy, AlphaState>
) -> 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: Copy, AlphaState: Copy> Copy for CieLChA<ComponentTy, AlphaState>[src]
impl<ComponentTy: Eq, AlphaState: Eq> Eq for CieLChA<ComponentTy, AlphaState>[src]
impl<ComponentTy: Pod, AlphaState: Copy + 'static> Pod for CieLChA<ComponentTy, AlphaState>[src]
impl<ComponentTy, AlphaState> StructuralEq for CieLChA<ComponentTy, AlphaState>[src]
impl<ComponentTy, AlphaState> StructuralPartialEq for CieLChA<ComponentTy, AlphaState>[src]
Auto Trait Implementations
impl<ComponentTy, AlphaState> Send for CieLChA<ComponentTy, AlphaState> where
AlphaState: Send,
ComponentTy: Send,
AlphaState: Send,
ComponentTy: Send,
impl<ComponentTy, AlphaState> Sync for CieLChA<ComponentTy, AlphaState> where
AlphaState: Sync,
ComponentTy: Sync,
AlphaState: Sync,
ComponentTy: Sync,
impl<ComponentTy, AlphaState> Unpin for CieLChA<ComponentTy, AlphaState> where
AlphaState: Unpin,
ComponentTy: Unpin,
AlphaState: Unpin,
ComponentTy: Unpin,