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