[][src]Enum rs_color::Color

pub enum Color<'a> {
    Cyan(&'a str),
    Green(&'a str),
    Red(&'a str),
    Yellow(&'a str),
    Blue(&'a str),
    Magenta(&'a str),
}

Represent possible ASCII colors

Use to decorate strings

Variants

Cyan(&'a str)
Green(&'a str)
Red(&'a str)
Yellow(&'a str)
Blue(&'a str)
Magenta(&'a str)

Implementations

impl<'_> Color<'_>[src]

pub fn make(self) -> String[src]

Make decorated strings

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, 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.