[][src]Enum twitchchat::TwitchColor

pub enum TwitchColor {
    Blue,
    BlueViolet,
    CadetBlue,
    Chocolate,
    Coral,
    DodgerBlue,
    Firebrick,
    GoldenRod,
    Green,
    HotPink,
    OrangeRed,
    Red,
    SeaGreen,
    SpringGreen,
    YellowGreen,
    Turbo(RGB),
}

These are the default Twitch colors

Variants

Blue

RGB (hex): #0000FF

BlueViolet

RGB (hex): #8A2BE2

CadetBlue

RGB (hex): #5F9EA0

Chocolate

RGB (hex): #D2691E

Coral

RGB (hex): #FF7F50

DodgerBlue

RGB (hex): #1E90FF

Firebrick

RGB (hex): #B22222

GoldenRod

RGB (hex): #DAA520

Green

RGB (hex): #008000

HotPink

RGB (hex): #FF69B4

OrangeRed

RGB (hex): #FF4500

Red

RGB (hex): #FF0000

SeaGreen

RGB (hex): #2E8B57

SpringGreen

RGB (hex): #00FF7F

YellowGreen

RGB (hex): #ADFF2F

Turbo(RGB)

Turbo colors are custom user-selected colors

Trait Implementations

impl Copy for Twitch[src]

impl PartialEq<Twitch> for Twitch[src]

impl Default for Twitch[src]

fn default() -> Self[src]

Defaults to Twitch::Turbo(RGB(0xFF,0xFF,0xFF))

impl From<Twitch> for RGB[src]

fn from(color: Twitch) -> Self[src]

Tries to turn the TwitchColor color into an RGB

If the color is, somehow, unknown, it'll use RGB::default

impl<'_> From<&'_ str> for Twitch[src]

fn from(input: &str) -> Self[src]

Tries to parse the twitch color name from a string, or as a #RRGGBB/RRGGBB string

view source to see valid strings

impl From<RGB> for Twitch[src]

fn from(rgb: RGB) -> Self[src]

Tries to turn the RGB Color into a Twitch Color

Defaults to a Turbo(RGB(0xFF,0xFF,0xFF))

impl Clone for Twitch[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Display for Twitch[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

Gets the Twitch color name as a string, as those listed on the Twitch site

impl Debug for Twitch[src]

Auto Trait Implementations

impl Send for TwitchColor

impl Sync for TwitchColor

Blanket Implementations

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

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

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

impl<T> Erased for T