Struct cssparser_color::Hsl
source · pub struct Hsl {
pub hue: Option<f32>,
pub saturation: Option<f32>,
pub lightness: Option<f32>,
pub alpha: Option<f32>,
}
Expand description
Color specified by hue, saturation and lightness components.
Fields§
§hue: Option<f32>
The hue component.
saturation: Option<f32>
The saturation component.
lightness: Option<f32>
The lightness component.
alpha: Option<f32>
The alpha component.
Implementations§
Trait Implementations§
impl Copy for Hsl
impl StructuralPartialEq for Hsl
Auto Trait Implementations§
impl RefUnwindSafe for Hsl
impl Send for Hsl
impl Sync for Hsl
impl Unpin for Hsl
impl UnwindSafe for Hsl
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