[−][src]Struct colors_transform::Hsl
Methods
impl Hsl
[src]
Trait Implementations
impl Color for Hsl
[src]
type Tuple = ColorTuple
ColorTuple or ColorTupleA.
type TupleA = ColorTupleA
fn new() -> Hsl
[src]
fn get_hue(&self) -> f32
[src]
fn get_saturation(&self) -> f32
[src]
fn get_lightness(&self) -> f32
[src]
fn set_hue(&self, val: f32) -> Hsl
[src]
fn set_saturation(&self, val: f32) -> Hsl
[src]
fn set_lightness(&self, val: f32) -> Hsl
[src]
fn get_red(&self) -> f32
[src]
fn get_green(&self) -> f32
[src]
fn get_blue(&self) -> f32
[src]
fn set_red(&self, val: f32) -> Hsl
[src]
fn set_green(&self, val: f32) -> Hsl
[src]
fn set_blue(&self, val: f32) -> Hsl
[src]
fn to_rgb(&self) -> Rgb
[src]
fn to_hsl(&self) -> Hsl
[src]
fn to_css_string(&self) -> String
[src]
fn from_tuple(t: &ColorTuple) -> Hsl
[src]
fn from_tuple_with_alpha(t: &ColorTupleA) -> Hsl
[src]
fn as_tuple(&self) -> ColorTuple
[src]
fn lighten(&self, val: f32) -> Hsl
[src]
fn saturate(&self, val: f32) -> Hsl
[src]
fn adjust_hue(&self, hue: f32) -> Hsl
[src]
fn adjust_color(&self, name: RgbUnit, val: f32) -> Hsl
[src]
fn invert(&self) -> Hsl
[src]
impl AlphaColor for Hsl
[src]
fn get_alpha(&self) -> f32
[src]
fn set_alpha(&self, a: f32) -> Hsl
[src]
fn opacify(&self, a: f32) -> Hsl
[src]
impl Copy for Hsl
[src]
impl PartialEq<Hsl> for Hsl
[src]
impl Clone for Hsl
[src]
fn clone(&self) -> Hsl
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Hsl
[src]
impl FromStr for Hsl
[src]
type Err = ParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Hsl, ParseError>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,