[−][src]Struct embedded_graphics::drawable::Pixel
A single pixel.
Pixel
objects are used to specify the position and color of drawn pixels.
Examples
The Drawable
trait is implemented for Pixel
which allows single pixels
to be drawn to a DrawTarget
:
use embedded_graphics::{pixelcolor::BinaryColor, prelude::*}; Pixel(Point::new(1, 2), BinaryColor::On).draw(&mut display);
Iterators with Pixel
items can also be drawn:
use embedded_graphics::{pixelcolor::BinaryColor, prelude::*}; (0..100) .map(|i| Pixel(Point::new(i, i * 2), BinaryColor::On)) .draw(&mut display);
Trait Implementations
impl<C: Clone + PixelColor> Clone for Pixel<C>
[src]
fn clone(&self) -> Pixel<C>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Copy + PixelColor> Copy for Pixel<C>
[src]
impl<C: Debug + PixelColor> Debug for Pixel<C>
[src]
impl<C> Drawable<C> for Pixel<C> where
C: PixelColor,
[src]
C: PixelColor,
fn draw<T: DrawTarget<C>>(self, display: &mut T)
[src]
impl<C: Eq + PixelColor> Eq for Pixel<C>
[src]
impl<C: PartialEq + PixelColor> PartialEq<Pixel<C>> for Pixel<C>
[src]
impl<C: PixelColor> StructuralEq for Pixel<C>
[src]
impl<C: PixelColor> StructuralPartialEq for Pixel<C>
[src]
Auto Trait Implementations
impl<C> Send for Pixel<C> where
C: Send,
C: Send,
impl<C> Sync for Pixel<C> where
C: Sync,
C: Sync,
impl<C> Unpin for Pixel<C> where
C: Unpin,
C: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Scalar for T where
T: PartialEq<T> + Copy + Any + Debug,
[src]
T: PartialEq<T> + Copy + Any + Debug,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,