[][src]Trait ingrid::GridIterator

pub trait GridIterator: Iterator {
    fn coordinate(&self) -> Coordinate;

    fn enumerate_coordinate(self) -> EnumerateCoordinate<Self>
    where
        Self: Sized
, { ... } }

An interface to implement grid iterators

This trait allows to implement an iterator for a grid. A grid iterator has the particularity of providing additional adaptors through its provided methods (for now, only enumerate_coordinate()). It must also be able to return the current coordinate.

Note that a grid iterator implements the standard iterator interface.

Required methods

fn coordinate(&self) -> Coordinate

Loading content...

Provided methods

Important traits for EnumerateCoordinate<I>
fn enumerate_coordinate(self) -> EnumerateCoordinate<Self> where
    Self: Sized

Loading content...

Implementors

impl<'a, T: Clone> GridIterator for IteratorColumn<'a, T>[src]

impl<'a, T: Clone> GridIterator for IteratorGrid<'a, T>[src]

impl<'a, T: Clone> GridIterator for IteratorRow<'a, T>[src]

Loading content...