Trait embedded_graphics::iterator::PixelIteratorExt [−][src]
pub trait PixelIteratorExt<C> where
Self: Sized,
C: PixelColor, { fn draw<D>(self, target: &mut D) -> Result<(), D::Error>
where
D: DrawTarget<Color = C>; fn translated(self, offset: Point) -> Translated<Self>ⓘ; }Notable traits for Translated<I>
impl<I, C> Iterator for Translated<I> where
I: Iterator<Item = Pixel<C>>,
C: PixelColor, type Item = I::Item;
Expand description
Extension trait for pixel iterators.
Required methods
fn draw<D>(self, target: &mut D) -> Result<(), D::Error> where
D: DrawTarget<Color = C>, [src]
fn draw<D>(self, target: &mut D) -> Result<(), D::Error> where
D: DrawTarget<Color = C>, [src]Draws the pixel iterator to a draw target.
fn translated(self, offset: Point) -> Translated<Self>ⓘNotable traits for Translated<I>
impl<I, C> Iterator for Translated<I> where
I: Iterator<Item = Pixel<C>>,
C: PixelColor, type Item = I::Item;[src]
fn translated(self, offset: Point) -> Translated<Self>ⓘNotable traits for Translated<I>
impl<I, C> Iterator for Translated<I> where
I: Iterator<Item = Pixel<C>>,
C: PixelColor, type Item = I::Item;[src]Returns a translated version of the iterator.
Implementors
impl<I, C> PixelIteratorExt<C> for I where
C: PixelColor,
I: Iterator<Item = Pixel<C>>, [src]
impl<I, C> PixelIteratorExt<C> for I where
C: PixelColor,
I: Iterator<Item = Pixel<C>>, [src]fn draw<D>(self, target: &mut D) -> Result<(), D::Error> where
D: DrawTarget<Color = C>, [src]
D: DrawTarget<Color = C>,
fn translated(self, offset: Point) -> Translated<Self>ⓘNotable traits for Translated<I>
impl<I, C> Iterator for Translated<I> where
I: Iterator<Item = Pixel<C>>,
C: PixelColor, type Item = I::Item;[src]
Notable traits for Translated<I>
impl<I, C> Iterator for Translated<I> where
I: Iterator<Item = Pixel<C>>,
C: PixelColor, type Item = I::Item;