[][src]Struct color_space::Hsl

pub struct Hsl {
    pub h: f64,
    pub s: f64,
    pub l: f64,
}

An HSL color (hue, saturation, light).

Fields

h: f64s: f64l: f64

Implementations

impl Hsl[src]

pub fn new(h: f64, s: f64, l: f64) -> Self[src]

Create a new HSL color.

h: hue component (0 to 360)

s: saturation component (0 to 1)

l: light component (0 to 1)

Trait Implementations

impl Clone for Hsl[src]

impl Copy for Hsl[src]

impl Debug for Hsl[src]

impl Default for Hsl[src]

impl From<Cmy> for Hsl[src]

impl From<Cmyk> for Hsl[src]

impl From<Hsl> for Hsv[src]

impl From<Hsl> for HunterLab[src]

impl From<Hsl> for Lab[src]

impl From<Hsl> for Lch[src]

impl From<Hsl> for Luv[src]

impl From<Hsl> for Rgb[src]

impl From<Hsl> for Xyz[src]

impl From<Hsl> for Yxy[src]

impl From<Hsl> for Cmy[src]

impl From<Hsl> for Cmyk[src]

impl From<Hsv> for Hsl[src]

impl From<HunterLab> for Hsl[src]

impl From<Lab> for Hsl[src]

impl From<Lch> for Hsl[src]

impl From<Luv> for Hsl[src]

impl From<Rgb> for Hsl[src]

impl From<Xyz> for Hsl[src]

impl From<Yxy> for Hsl[src]

impl FromColor<Cmy> for Hsl[src]

impl FromColor<Cmyk> for Hsl[src]

impl FromColor<Hsl> for Hsl[src]

impl FromColor<Hsl> for Hsv[src]

impl FromColor<Hsl> for Cmyk[src]

impl FromColor<Hsl> for HunterLab[src]

impl FromColor<Hsl> for Lab[src]

impl FromColor<Hsl> for Lch[src]

impl FromColor<Hsl> for Luv[src]

impl FromColor<Hsl> for Rgb[src]

impl FromColor<Hsl> for Xyz[src]

impl FromColor<Hsl> for Yxy[src]

impl FromColor<Hsl> for Cmy[src]

impl FromColor<Hsv> for Hsl[src]

impl FromColor<HunterLab> for Hsl[src]

impl FromColor<Lab> for Hsl[src]

impl FromColor<Lch> for Hsl[src]

impl FromColor<Luv> for Hsl[src]

impl FromColor<Rgb> for Hsl[src]

impl FromColor<Xyz> for Hsl[src]

impl FromColor<Yxy> for Hsl[src]

impl FromRgb for Hsl[src]

impl PartialEq<Hsl> for Hsl[src]

impl ToRgb for Hsl[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.