Struct cint::OklabA [−][src]
#[repr(C)]pub struct OklabA<ComponentTy, AlphaState> { pub l: ComponentTy, pub a: ComponentTy, pub b: ComponentTy, pub alpha: ComponentTy, // some fields omitted }
Expand description
A color in the Oklab 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 1
a: ComponentTyExpand description
The a component, representing green-red chroma difference.
b: ComponentTyExpand description
The b component, representing blue-yellow chroma difference.
alpha: ComponentTyExpand description
The alpha component.
Trait Implementations
impl<ComponentTy: Ord, AlphaState: Ord> Ord for OklabA<ComponentTy, AlphaState>[src]
impl<ComponentTy: Ord, AlphaState: Ord> Ord for OklabA<ComponentTy, AlphaState>[src]impl<ComponentTy: PartialEq, AlphaState: PartialEq> PartialEq<OklabA<ComponentTy, AlphaState>> for OklabA<ComponentTy, AlphaState>[src]
impl<ComponentTy: PartialEq, AlphaState: PartialEq> PartialEq<OklabA<ComponentTy, AlphaState>> for OklabA<ComponentTy, AlphaState>[src]impl<ComponentTy: PartialOrd, AlphaState: PartialOrd> PartialOrd<OklabA<ComponentTy, AlphaState>> for OklabA<ComponentTy, AlphaState>[src]
impl<ComponentTy: PartialOrd, AlphaState: PartialOrd> PartialOrd<OklabA<ComponentTy, AlphaState>> for OklabA<ComponentTy, AlphaState>[src]fn partial_cmp(
&self,
other: &OklabA<ComponentTy, AlphaState>
) -> Option<Ordering>[src]
fn partial_cmp(
&self,
other: &OklabA<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 OklabA<ComponentTy, AlphaState>[src]
impl<ComponentTy: Eq, AlphaState: Eq> Eq for OklabA<ComponentTy, AlphaState>[src]
impl<ComponentTy: Pod, AlphaState: Copy + 'static> Pod for OklabA<ComponentTy, AlphaState>[src]
impl<ComponentTy, AlphaState> StructuralEq for OklabA<ComponentTy, AlphaState>[src]
impl<ComponentTy, AlphaState> StructuralPartialEq for OklabA<ComponentTy, AlphaState>[src]
Auto Trait Implementations
impl<ComponentTy, AlphaState> Send for OklabA<ComponentTy, AlphaState> where
AlphaState: Send,
ComponentTy: Send,
AlphaState: Send,
ComponentTy: Send,
impl<ComponentTy, AlphaState> Sync for OklabA<ComponentTy, AlphaState> where
AlphaState: Sync,
ComponentTy: Sync,
AlphaState: Sync,
ComponentTy: Sync,
impl<ComponentTy, AlphaState> Unpin for OklabA<ComponentTy, AlphaState> where
AlphaState: Unpin,
ComponentTy: Unpin,
AlphaState: Unpin,
ComponentTy: Unpin,