DefaultColor

Enum DefaultColor 

Source
pub enum DefaultColor {
Show 16 variants Black, Red, Green, Yellow, Blue, Magenta, Cyan, White, Gray, BrightRed, BrightGreen, BrightYellow, BrightBlue, BrightMagenta, BrightCyan, BrightWhite,
}
Expand description

Default for Colors. By default they will convert into 8 Bit Color If you would like them to auto convert into 4 bit color. Enable the feature default_four_bit

Variants§

§

Black

0 on 8 bit color

§

Red

0 on 8 bit color

§

Green

1 on 8 bit color

§

Yellow

2 on 8 bit color

§

Blue

3 on 8 bit color

§

Magenta

4 on 8 bit color

§

Cyan

5 on 8 bit color

§

White

6 on 8 bit color

§

Gray

7 on 8 bit color

§

BrightRed

8 on 8 bit color

§

BrightGreen

9 on 8 bit color

§

BrightYellow

10 on 8 bit color

§

BrightBlue

11 on 8 bit color

§

BrightMagenta

12 on 8 bit color

§

BrightCyan

13 on 8 bit color

§

BrightWhite

14 on 8 bit color

Trait Implementations§

Source§

impl From<DefaultColor> for Color

Source§

fn from(value: DefaultColor) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.