Struct tcod::colors::Color [] [src]

#[repr(C)]
pub struct Color { pub r: u8, pub g: u8, pub b: u8, }

Fields

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 Debug for Color
[src]

Formats the value using the given formatter.

impl Default for Color
[src]

Returns the "default value" for a type. 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 !=.

impl AsNative<TCOD_color_t> for Color
[src]

impl FromNative<TCOD_color_t> for Color
[src]

impl Add<Color> for Color
[src]

The resulting type after applying the + operator

The method for the + operator

impl Sub<Color> for Color
[src]

The resulting type after applying the - operator

The method for the - operator

impl Mul<Color> for Color
[src]

The resulting type after applying the * operator

The method for the * operator

impl Mul<f32> for Color
[src]

The resulting type after applying the * operator

The method for the * operator

impl Div<f32> for Color
[src]

The resulting type after applying the / operator

The method for the / operator