Trait embedded_graphics::iterator::PixelIteratorExt

source ·
pub trait PixelIteratorExt<C>
where Self: Sized, C: PixelColor,
{ // Required methods fn draw<D>(self, target: &mut D) -> Result<(), D::Error> where D: DrawTarget<Color = C>; fn translated(self, offset: Point) -> Translated<Self> ; }
Expand description

Extension trait for pixel iterators.

Required Methods§

source

fn draw<D>(self, target: &mut D) -> Result<(), D::Error>
where D: DrawTarget<Color = C>,

Draws the pixel iterator to a draw target.

source

fn translated(self, offset: Point) -> Translated<Self>

Returns a translated version of the iterator.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<I, C> PixelIteratorExt<C> for I
where C: PixelColor, I: Iterator<Item = Pixel<C>>,