[][src]Enum epd_waveshare_uart::color::EpdColor

#[repr(u8)]
pub enum EpdColor {
    Black,
    DarkGray,
    Gray,
    White,
}

Variants

Black
DarkGray
Gray
White

Methods

impl EpdColor[src]

pub fn get_bit_value(self) -> u8[src]

Get the color encoding of the color for one bit

pub fn get_byte_value(self) -> u8[src]

Gets a full byte of black or white pixels

pub fn inverse(self) -> EpdColor[src]

Returns the inverse of the given color.

Black returns White and White returns Black

Trait Implementations

impl Clone for EpdColor[src]

impl Copy for EpdColor[src]

impl Debug for EpdColor[src]

impl<'a> Drawing<EpdColor> for VarDisplay<'a>[src]

impl Drawing<EpdColor> for Display4in3[src]

impl Eq for EpdColor[src]

impl From<u8> for EpdColor[src]

impl PartialEq<EpdColor> for EpdColor[src]

impl PixelColor for EpdColor[src]

type Raw = ()

Raw data type. Read more

impl StructuralEq for EpdColor[src]

impl StructuralPartialEq for EpdColor[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.