embedded_graphics::iterator

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

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