Struct cint::OklchA [−][src]
#[repr(C)]pub struct OklchA<ComponentTy, AlphaState> { pub l: ComponentTy, pub c: ComponentTy, pub h: ComponentTy, pub alpha: ComponentTy, // some fields omitted }
Expand description
A color in the Oklch color space (a transformation from Oklab to L*c*h coordinates).
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 1.
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 OklchA<ComponentTy, AlphaState>[src]
impl<ComponentTy: Ord, AlphaState: Ord> Ord for OklchA<ComponentTy, AlphaState>[src]impl<ComponentTy: PartialEq, AlphaState: PartialEq> PartialEq<OklchA<ComponentTy, AlphaState>> for OklchA<ComponentTy, AlphaState>[src]
impl<ComponentTy: PartialEq, AlphaState: PartialEq> PartialEq<OklchA<ComponentTy, AlphaState>> for OklchA<ComponentTy, AlphaState>[src]impl<ComponentTy: PartialOrd, AlphaState: PartialOrd> PartialOrd<OklchA<ComponentTy, AlphaState>> for OklchA<ComponentTy, AlphaState>[src]
impl<ComponentTy: PartialOrd, AlphaState: PartialOrd> PartialOrd<OklchA<ComponentTy, AlphaState>> for OklchA<ComponentTy, AlphaState>[src]fn partial_cmp(
&self,
other: &OklchA<ComponentTy, AlphaState>
) -> Option<Ordering>[src]
fn partial_cmp(
&self,
other: &OklchA<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 OklchA<ComponentTy, AlphaState>[src]
impl<ComponentTy: Eq, AlphaState: Eq> Eq for OklchA<ComponentTy, AlphaState>[src]
impl<ComponentTy: Pod, AlphaState: Copy + 'static> Pod for OklchA<ComponentTy, AlphaState>[src]
impl<ComponentTy, AlphaState> StructuralEq for OklchA<ComponentTy, AlphaState>[src]
impl<ComponentTy, AlphaState> StructuralPartialEq for OklchA<ComponentTy, AlphaState>[src]
Auto Trait Implementations
impl<ComponentTy, AlphaState> Send for OklchA<ComponentTy, AlphaState> where
AlphaState: Send,
ComponentTy: Send,
AlphaState: Send,
ComponentTy: Send,
impl<ComponentTy, AlphaState> Sync for OklchA<ComponentTy, AlphaState> where
AlphaState: Sync,
ComponentTy: Sync,
AlphaState: Sync,
ComponentTy: Sync,
impl<ComponentTy, AlphaState> Unpin for OklchA<ComponentTy, AlphaState> where
AlphaState: Unpin,
ComponentTy: Unpin,
AlphaState: Unpin,
ComponentTy: Unpin,