Crate infinite_iterator

Source
Expand description

This crate provides a trait, InfiniteIterator, used to represent an iterator for which next can never return None.

It additionally provides a macro, ifor!, which is identical a for loop except it supports breaking with a value when used on an infinite iterator.

Macros§

ifor
An extension of for in loops with better support for infinite iterators.

Traits§

InfiniteIterator
An Iterator that never ends.
PeekableExt
An extension trait providing extra methods to iter::Peekable when the underlying iterator never ends.