Struct cssparser_color::Oklch
source · pub struct Oklch {
pub lightness: Option<f32>,
pub chroma: Option<f32>,
pub hue: Option<f32>,
pub alpha: Option<f32>,
}
Expand description
Color specified by lightness, chroma and hue components.
Fields§
§lightness: Option<f32>
The lightness component.
chroma: Option<f32>
The chroma component.
hue: Option<f32>
The hue component.
alpha: Option<f32>
The alpha component.
Implementations§
Trait Implementations§
source§impl PartialEq<Oklch> for Oklch
impl PartialEq<Oklch> for Oklch
impl Copy for Oklch
impl StructuralPartialEq for Oklch
Auto Trait Implementations§
impl RefUnwindSafe for Oklch
impl Send for Oklch
impl Sync for Oklch
impl Unpin for Oklch
impl UnwindSafe for Oklch
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more