Struct embedded_graphics::pixelcolor::PixelColorU16[][src]

pub struct PixelColorU16(pub u16);

Pixel wrapper around u16 type

Methods

impl PixelColorU16
[src]

Get the inner value of the pixel

use pixelcolor::PixelColorU8;

let color = PixelColoru8(100u8); assert_eq!(color.into_inner(), 100u8);

Trait Implementations

impl Copy for PixelColorU16
[src]

impl Clone for PixelColorU16
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for PixelColorU16
[src]

impl PartialEq for PixelColorU16
[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 PixelColorU16
[src]

Formats the value using the given formatter. Read more

impl From<u8> for PixelColorU16
[src]

Performs the conversion.

impl From<u16> for PixelColorU16
[src]

Performs the conversion.

impl PixelColor for PixelColorU16
[src]

Auto Trait Implementations