Trait with_position::WithPosition [] [src]

pub trait WithPosition {
    type Iterator: Iterator;
    fn with_position(self) -> PositionIterator<Self::Iterator>;
}

Extension trait for iterators which adds the with_position method

Associated Types

Required Methods

Yield a tuple of (Position, item) where position indicates whether this is the first, middle or last item.

Implementors