Struct sensehat::Colour[][src]

pub struct Colour(_);

Represents an RGB colour.

Methods

impl Colour
[src]

WHITE: Colour = Colour(<PixelColor>::WHITE)

RED: Colour = Colour(<PixelColor>::RED)

GREEN: Colour = Colour(<PixelColor>::GREEN)

BLUE: Colour = Colour(<PixelColor>::BLUE)

BLACK: Colour = Colour(<PixelColor>::BLACK)

YELLOW: Colour = Colour(<PixelColor>::YELLOW)

MAGENTA: Colour = Colour(<PixelColor>::MAGENTA)

CYAN: Colour = Colour(<PixelColor>::CYAN)

Trait Implementations

impl Debug for Colour
[src]

Formats the value using the given formatter. Read more

impl Copy for Colour
[src]

impl Clone for Colour
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Colour
[src]

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

This method tests for !=.

impl<'a> Into<Colour> for &'a str
[src]

Performs the conversion.

impl<'a> Into<Colour> for (u8, u8, u8)
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Colour

impl Sync for Colour