embedded_graphics::iterator

Trait ContiguousIteratorExt

Source
pub trait ContiguousIteratorExt
where Self: Iterator + Sized, <Self as Iterator>::Item: PixelColor,
{ // Required method fn into_pixels(self, bounding_box: &Rectangle) -> IntoPixels<Self> ; }
Expand description

Extension trait for contiguous iterators.

Required Methods§

Source

fn into_pixels(self, bounding_box: &Rectangle) -> IntoPixels<Self>

Converts a contiguous iterator into a pixel 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> ContiguousIteratorExt for I
where I: Iterator, I::Item: PixelColor,