[][src]Trait bitbar::IntoColor

pub trait IntoColor {
    fn into_color(self) -> Result<Color, ColorParseError>;
}

Used by ContentItem::color.

Required methods

fn into_color(self) -> Result<Color, ColorParseError>

Converts self into a Color.

Loading content...

Implementations on Foreign Types

impl<'_> IntoColor for &'_ str[src]

impl IntoColor for Color[src]

impl IntoColor for RGB[src]

impl IntoColor for RGBA[src]

impl IntoColor for HSL[src]

impl IntoColor for HSLA[src]

impl IntoColor for Colour[src]

Loading content...

Implementors

Loading content...