Struct cint::Oklab [−][src]
#[repr(C)]pub struct Oklab<ComponentTy> { pub l: ComponentTy, pub a: ComponentTy, pub b: ComponentTy, }
Expand description
A color in the Oklab color space.
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.
Trait Implementations
impl<ComponentTy> From<ColorAlpha<ComponentTy, Oklab<ComponentTy>>> for Oklab<ComponentTy>[src]
impl<ComponentTy> From<ColorAlpha<ComponentTy, Oklab<ComponentTy>>> for Oklab<ComponentTy>[src]fn from(
col_alpha: ColorAlpha<ComponentTy, Oklab<ComponentTy>>
) -> Oklab<ComponentTy>[src]
fn from(
col_alpha: ColorAlpha<ComponentTy, Oklab<ComponentTy>>
) -> Oklab<ComponentTy>[src]Performs the conversion.
impl<ComponentTy> From<PremultipliedColorAlpha<ComponentTy, Oklab<ComponentTy>>> for Oklab<ComponentTy>[src]
impl<ComponentTy> From<PremultipliedColorAlpha<ComponentTy, Oklab<ComponentTy>>> for Oklab<ComponentTy>[src]fn from(
col_alpha: PremultipliedColorAlpha<ComponentTy, Oklab<ComponentTy>>
) -> Oklab<ComponentTy>[src]
fn from(
col_alpha: PremultipliedColorAlpha<ComponentTy, Oklab<ComponentTy>>
) -> Oklab<ComponentTy>[src]Performs the conversion.
impl<ComponentTy: Ord> Ord for Oklab<ComponentTy>[src]
impl<ComponentTy: Ord> Ord for Oklab<ComponentTy>[src]impl<ComponentTy: PartialOrd> PartialOrd<Oklab<ComponentTy>> for Oklab<ComponentTy>[src]
impl<ComponentTy: PartialOrd> PartialOrd<Oklab<ComponentTy>> for Oklab<ComponentTy>[src]fn partial_cmp(&self, other: &Oklab<ComponentTy>) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Oklab<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) -> 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> Copy for Oklab<ComponentTy>[src]
impl<ComponentTy: Eq> Eq for Oklab<ComponentTy>[src]
impl<ComponentTy: Pod> Pod for Oklab<ComponentTy>[src]
impl<ComponentTy> StructuralEq for Oklab<ComponentTy>[src]
impl<ComponentTy> StructuralPartialEq for Oklab<ComponentTy>[src]
Auto Trait Implementations
impl<ComponentTy> Send for Oklab<ComponentTy> where
ComponentTy: Send,
ComponentTy: Send,
impl<ComponentTy> Sync for Oklab<ComponentTy> where
ComponentTy: Sync,
ComponentTy: Sync,
impl<ComponentTy> Unpin for Oklab<ComponentTy> where
ComponentTy: Unpin,
ComponentTy: Unpin,