Struct embedded_graphics::drawable::Pixel [−][src]
pub struct Pixel<C: PixelColor>(pub UnsignedCoord, pub C);
A single pixel
Trait Implementations
impl<C: Copy + PixelColor> Copy for Pixel<C>
[src]
impl<C: Copy + PixelColor> Copy for Pixel<C>
impl<C: Clone + PixelColor> Clone for Pixel<C>
[src]
impl<C: Clone + PixelColor> Clone for Pixel<C>
fn clone(&self) -> Pixel<C>
[src]
fn clone(&self) -> Pixel<C>
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<C: Debug + PixelColor> Debug for Pixel<C>
[src]
impl<C: Debug + PixelColor> Debug for Pixel<C>
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<C: PartialEq + PixelColor> PartialEq for Pixel<C>
[src]
impl<C: PartialEq + PixelColor> PartialEq for Pixel<C>
fn eq(&self, other: &Pixel<C>) -> bool
[src]
fn eq(&self, other: &Pixel<C>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Pixel<C>) -> bool
[src]
fn ne(&self, other: &Pixel<C>) -> bool
This method tests for !=
.
impl<C: Eq + PixelColor> Eq for Pixel<C>
[src]
impl<C: Eq + PixelColor> Eq for Pixel<C>