Enum sdl2::pixels::Color [] [src]

pub enum Color {
    RGB(u8u8u8),
    RGBA(u8u8u8u8),
}

Variants

Methods

impl Color
[src]

Trait Implementations

impl Copy for Color
[src]

impl Clone for Color
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for Color
[src]

impl PartialEq for Color
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for Color
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Debug for Color
[src]

Formats the value using the given formatter.

impl Into<SDL_Color> for Color
[src]

Performs the conversion.

impl From<SDL_Color> for Color
[src]

Performs the conversion.

impl Rand for Color
[src]

Generates a random instance of this type using the specified source of randomness. Read more