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.

Implementors§

source§

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