[][src]Enum winconsole::console::ConsoleColor

#[repr(u8)]
pub enum ConsoleColor { Black, DarkBlue, DarkGreen, Teal, DarkRed, Magenta, DarkYellow, Gray, DarkGray, Blue, Green, Aqua, Red, Pink, Yellow, White, }

Represents supported console colors.

Variants

Black

The color black; defaults to #000000.

DarkBlue

The color dark blue; defaults to #000080.

DarkGreen

The color dark green; defaults to #008000.

Teal

The color teal; defaults to #008080.

DarkRed

The color dark red; defaults to #800000.

Magenta

The color magenta; defaults to #800080.

DarkYellow

The color dark yellow; defaults to #808000.

Gray

The color gray; defaults to #C0C0C0.

DarkGray

The color dark gray; defaults to #808080.

Blue

The color blue; defaults to #0000FF.

Green

The color green; defaults to #00FF00.

Aqua

The color aqua; defaults to #00FFFF.

Red

The color red; defaults to #FF0000.

Pink

The color pink; defaults to #FF00FF.

Yellow

The color yellow; defaults to #FFFF00.

White

The color white; defaults to #FFFFFF.

Methods

impl ConsoleColor[src]

pub fn get_value(&self) -> u8[src]

Returns the integral value of the ConsoleColor .

Trait Implementations

impl PartialEq<ConsoleColor> for ConsoleColor[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl From<u16> for ConsoleColor[src]

impl Clone for ConsoleColor[src]

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

Performs copy-assignment from source. Read more

impl Into<u16> for ConsoleColor[src]

impl Copy for ConsoleColor[src]

impl Display for ConsoleColor[src]

impl Debug for ConsoleColor[src]

impl Serialize for ConsoleColor[src]

impl<'de> Deserialize<'de> for ConsoleColor[src]

Auto Trait Implementations

impl Send for ConsoleColor

impl Sync for ConsoleColor

Blanket Implementations

impl<T> From<T> for T[src]

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]