pub struct Hsla {
pub h: f32,
pub s: f32,
pub l: f32,
pub a: f32,
}
Fields§
§h: f32
§s: f32
§l: f32
§a: f32
Trait Implementations§
Source§impl ColorspaceImpl for Hsla
impl ColorspaceImpl for Hsla
fn to_rgba(&self) -> Rgba
fn to_normalized_rgba(&self) -> NormalizedRgba
fn to_rgba16(&self) -> Rgba16
fn to_normalized_hsla(&self) -> NormalizedHsla
fn to_hsla(&self) -> Self
fn darken(&self, percentage: f32) -> Self
fn lighten(&self, percentage: f32) -> Self
Source§impl PartialOrd for Hsla
impl PartialOrd for Hsla
impl Copy for Hsla
impl StructuralPartialEq for Hsla
Auto Trait Implementations§
impl Freeze for Hsla
impl RefUnwindSafe for Hsla
impl Send for Hsla
impl Sync for Hsla
impl Unpin for Hsla
impl UnwindSafe for Hsla
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