Struct bear_lib_terminal::Color [] [src]

pub struct Color {
    pub red: u8,
    pub green: u8,
    pub blue: u8,
    pub alpha: u8,
}

An RGBA colour repr.

Fields

Methods

impl Color
[src]

Equivalent to from_rgba() with full opacity

Trait Implementations

impl Clone for Color
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Color
[src]

impl Debug for Color
[src]

Formats the value using the given formatter.

impl Eq for Color
[src]

impl Hash for Color
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

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 !=.