Lyricdev
GitHub

struct ZipIter

pub struct ZipIter<A :: [Iterator], B :: [Iterator]> :: [Iterator]

Conforms to Iterator, Closeable.

Yields pairs of the values two iterators hold at the same position; made by it.zip(other).

It ends when either iterator ends; the first is pulled before the second.

Methods

pub mut fn next(): ?(A.Item, B.Item) throws Join<A.Error, B.Error>
fn close(): void throws Join<A.Error, B.Error>