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
An extension of for in
loops with better support for infinite iterators.
Traits
An Iterator
that never ends.
An extension trait providing extra methods to iter::Peekable
when the underlying iterator never ends.