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§
sourcefn draw<D>(self, target: &mut D) -> Result<(), D::Error>where
D: DrawTarget<Color = C>,
fn draw<D>(self, target: &mut D) -> Result<(), D::Error>where
D: DrawTarget<Color = C>,
Draws the pixel iterator to a draw target.
sourcefn translated(self, offset: Point) -> Translated<Self> ⓘ
fn translated(self, offset: Point) -> Translated<Self> ⓘ
Returns a translated version of the iterator.
Object Safety§
This trait is not object safe.