[][src]Struct piet_embedded_graphics::batch::RowIterator

pub struct RowIterator<P: Iterator<Item = Pixel<Rgb565>>> {
    pixels: P,
    x_left: u8,
    x_right: u8,
    y: u8,
    colors: Vec<u16, U50>,
    first_pixel: bool,
}

Iterator for each Pixel Row in the pixel data. A Pixel Row consists of contiguous pixels on the same row.

Fields

pixels: P

Pixels to be batched into rows

x_left: u8

Start column number

x_right: u8

End column number

y: u8

Row number

colors: Vec<u16, U50>

List of pixel colours for the entire row

first_pixel: bool

True if this is the first pixel for the row

Trait Implementations

impl<P: Clone + Iterator<Item = Pixel<Rgb565>>> Clone for RowIterator<P>[src]

impl<P: Debug + Iterator<Item = Pixel<Rgb565>>> Debug for RowIterator<P>[src]

impl<P: Iterator<Item = Pixel<Rgb565>>> Iterator for RowIterator<P>[src]

Implement the Iterator for Pixel Rows. P can be any Pixel Iterator (e.g. a rectangle).

type Item = PixelRow

This Iterator returns Pixel Rows

fn next(&mut self) -> Option<Self::Item>[src]

Return the next Pixel Row of contiguous pixels on the same row

Auto Trait Implementations

impl<P> Send for RowIterator<P> where
    P: Send

impl<P> Sync for RowIterator<P> where
    P: Sync

impl<P> Unpin for RowIterator<P> where
    P: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> RoundFrom<T> for T[src]

impl<T, U> RoundInto<U> for T where
    U: RoundFrom<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.