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
fn with_position(self) -> PositionIterator<Self::Iterator>
Yield a tuple of (Position, item)
where position indicates whether this
is the first, middle or last item.
Implementors
impl<T> WithPosition for T where
T: Iterator,