pub fn to_hsla(&self) -> Cow<Hsla> {
        match self {
            Color::Rgba(rgba) => Cow::Owned(Hsla::from(rgba)),
            Color::Hsla(ref hsla) => Cow::Borrowed(hsla),
            Color::Hwba(hwba) => Cow::Owned(Hsla::from(hwba)),
        }
    }
/// Get this color as a hsla value.
///
/// If this color is a hsla value, return a borrow of it.
/// Otherwise, do the conversion and return an owned value.
Get this color as a hsla value.
If this color is a hsla value, return a borrow of it.
Otherwise, do the conversion and return an owned value.
Get this color as a hsla value . If this color is a hsla value return a borrow of it . Otherwise do the conversion and return an owned value .
pub fn to_hsla(&self) -> Cow<Hsla> {
        match self {
            Color::Rgba(rgba) => Cow::Owned(Hsla::from(rgba)),
            Color::Hsla(ref hsla) => Cow::Borrowed(hsla),
            Color::Hwba(hwba) => Cow::Owned(Hsla::from(hwba)),
        }
    }
pub fn to_hsla ( & self ) -> Cow < Hsla > { match self { Color :: Rgba ( rgba ) => Cow :: Owned ( Hsla :: from ( rgba ) ) , Color :: Hsla ( ref hsla ) => Cow :: Borrowed ( hsla ) , Color :: Hwba ( hwba ) => Cow :: Owned ( Hsla :: from ( hwba ) ) , } }
Get this color as a hsla value.
Get this color as a hsla value .
&self
&self