Enum dotavious::attributes::Color[][src]

pub enum Color<'a> {
    RGB {
        red: u8,
        green: u8,
        blue: u8,
    },
    RGBA {
        red: u8,
        green: u8,
        blue: u8,
        alpha: u8,
    },
    HSV {
        hue: f32,
        saturation: f32,
        value: f32,
    },
    Named(&'a str),
}

Variants

RGB

Fields of RGB

red: u8green: u8blue: u8
RGBA

Fields of RGBA

red: u8green: u8blue: u8alpha: u8
HSV

Fields of HSV

hue: f32saturation: f32value: f32
Named(&'a str)

Trait Implementations

impl<'a> Clone for Color<'a>[src]

impl<'a> Copy for Color<'a>[src]

impl<'a> Debug for Color<'a>[src]

impl<'a> DotString<'a> for Color<'a>[src]

impl<'a> From<Color<'a>> for AttributeText<'a>[src]

impl<'a> PartialEq<Color<'a>> for Color<'a>[src]

impl<'a> StructuralPartialEq for Color<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Color<'a>

impl<'a> Send for Color<'a>

impl<'a> Sync for Color<'a>

impl<'a> Unpin for Color<'a>

impl<'a> UnwindSafe for Color<'a>

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.