Struct embedded_graphics::pixelcolor::PixelColorU8 [−][src]
pub struct PixelColorU8(pub u8);
Pixel wrapper around u8
type
Methods
impl PixelColorU8
[src]
impl PixelColorU8
pub fn into_inner(self) -> u8
[src]
pub fn into_inner(self) -> u8
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 Copy for PixelColorU8
impl Clone for PixelColorU8
[src]
impl Clone for PixelColorU8
fn clone(&self) -> PixelColorU8
[src]
fn clone(&self) -> PixelColorU8
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 Eq for PixelColorU8
[src]
impl Eq for PixelColorU8
impl PartialEq for PixelColorU8
[src]
impl PartialEq for PixelColorU8
fn eq(&self, other: &PixelColorU8) -> bool
[src]
fn eq(&self, other: &PixelColorU8) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PixelColorU8) -> bool
[src]
fn ne(&self, other: &PixelColorU8) -> bool
This method tests for !=
.
impl Debug for PixelColorU8
[src]
impl Debug for PixelColorU8
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 From<u8> for PixelColorU8
[src]
impl From<u8> for PixelColorU8
impl PixelColor for PixelColorU8
[src]
impl PixelColor for PixelColorU8
Auto Trait Implementations
impl Send for PixelColorU8
impl Send for PixelColorU8
impl Sync for PixelColorU8
impl Sync for PixelColorU8