Enum vga::colors::Color16[][src]

#[repr(u8)]pub enum Color16 {
    Black,
    Blue,
    Green,
    Cyan,
    Red,
    Magenta,
    Brown,
    LightGrey,
    DarkGrey,
    LightBlue,
    LightGreen,
    LightCyan,
    LightRed,
    Pink,
    Yellow,
    White,
}

Represents a 16 bit color used for vga display.

Variants

Black

Represents the color Black (0x0).

Blue

Represents the color Blue (0x1).

Green

Represents the color Green (0x2).

Cyan

Represents the color Cyan (0x3).

Red

Represents the color Red (0x4).

Magenta

Represents the color Magenta (0x5).

Brown

Represents the color Brown (0x6).

LightGrey

Represents the color LightGrey (0x7).

DarkGrey

Represents the color DarkGrey (0x8).

LightBlue

Represents the color LightBlue (0x9).

LightGreen

Represents the color LightGreen (0xA).

LightCyan

Represents the color LightCyan (0xB).

LightRed

Represents the color LightRed (0xC).

Pink

Represents the color Pink (0xD).

Yellow

Represents the color Yellow (0xE).

White

Represents the color White (0xF).

Trait Implementations

impl Clone for Color16[src]

impl Copy for Color16[src]

impl Debug for Color16[src]

impl Eq for Color16[src]

impl GraphicsWriter<Color16> for Graphics640x480x16[src]

fn set_pixel(&self, x: usize, y: usize, color: Color16)[src]

Note: This method is provided for convenience, but has terrible performance since it needs to ensure the correct WriteMode per pixel drawn. If you need to draw more then one pixel, consider using a method such as draw_line.

impl Hash for Color16[src]

impl PartialEq<Color16> for Color16[src]

impl StructuralEq for Color16[src]

impl StructuralPartialEq for Color16[src]

Auto Trait Implementations

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.