Lyricdev
GitHub

struct WindowsIter

pub struct WindowsIter<I :: [Iterator]> :: [Iterator]

Conforms to Iterator, Closeable.

Yields every run of n consecutive values of an iterator in turn, each in a new list; made by it.windows(n).

Yields nothing where there are fewer than n values.

Methods

pub mut fn next(): ?List<I.Item> throws I.Error
fn close(): void throws I.Error