Lyricdev
GitHub

struct ScanIter

pub struct ScanIter<I :: [Iterator], A, E :: [Error] = never> :: [Iterator]

Conforms to Iterator, Closeable.

Yields init, then each value f makes of the previous one and the next value of an iterator; made by it.scan(init, f).

These are the running values of fold: for n values it yields n + 1.

Methods

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