Struct embedded_graphics::pixelcolor::PixelColorU8[][src]

pub struct PixelColorU8(pub u8);

Pixel wrapper around u8 type

Methods

impl PixelColorU8
[src]

Get the inner value of the pixel

use pixelcolor::PixelColorU16;

let color = PixelColoru16(100u16); assert_eq!(color.into_inner(), 100u16);

Trait Implementations

impl Copy for PixelColorU8
[src]

impl Clone for PixelColorU8
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for PixelColorU8
[src]

impl PartialEq for PixelColorU8
[src]

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

This method tests for !=.

impl Debug for PixelColorU8
[src]

Formats the value using the given formatter. Read more

impl From<u8> for PixelColorU8
[src]

Performs the conversion.

impl PixelColor for PixelColorU8
[src]

Auto Trait Implementations