Trait IntoPixelStream

Source
pub trait IntoPixelStream {
    type Pixel: Pixel;
    type PixelIter: Iterator<Item = Self::Pixel>;

    // Required method
    fn into_pixel_stream(self) -> PixelStream<Self::Pixel, Self::PixelIter>;
}
Expand description

Converts an iterator of pixels into a pixel stream, usable by the driver’s write function.

Required Associated Types§

Source

type Pixel: Pixel

The pixel type.

Source

type PixelIter: Iterator<Item = Self::Pixel>

The pixel iterator type.

Required Methods§

Source

fn into_pixel_stream(self) -> PixelStream<Self::Pixel, Self::PixelIter>

Converts the current object into a pixel stream.

Implementors§