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