Struct sensehat::Colour [−][src]
pub struct Colour(_);
Represents an RGB colour.
Methods
impl Colour
[src]
impl Colour
pub const WHITE: Colour
WHITE: Colour = Colour(<PixelColor>::WHITE)
pub const RED: Colour
RED: Colour = Colour(<PixelColor>::RED)
pub const GREEN: Colour
GREEN: Colour = Colour(<PixelColor>::GREEN)
pub const BLUE: Colour
BLUE: Colour = Colour(<PixelColor>::BLUE)
pub const BLACK: Colour
BLACK: Colour = Colour(<PixelColor>::BLACK)
pub const YELLOW: Colour
YELLOW: Colour = Colour(<PixelColor>::YELLOW)
pub const MAGENTA: Colour
MAGENTA: Colour = Colour(<PixelColor>::MAGENTA)
pub const CYAN: Colour
CYAN: Colour = Colour(<PixelColor>::CYAN)
Trait Implementations
impl Debug for Colour
[src]
impl Debug for Colour
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for Colour
[src]
impl Copy for Colour
impl Clone for Colour
[src]
impl Clone for Colour
fn clone(&self) -> Colour
[src]
fn clone(&self) -> Colour
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Colour
[src]
impl PartialEq for Colour
fn eq(&self, other: &Colour) -> bool
[src]
fn eq(&self, other: &Colour) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Colour) -> bool
[src]
fn ne(&self, other: &Colour) -> bool
This method tests for !=
.
impl<'a> Into<Colour> for &'a str
[src]
impl<'a> Into<Colour> for &'a str
impl<'a> Into<Colour> for (u8, u8, u8)
[src]
impl<'a> Into<Colour> for (u8, u8, u8)