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 inloops with better support for infinite iterators.
Traits§
- Infinite
Iterator - An
Iteratorthat never ends. - Peekable
Ext - An extension trait providing extra methods to
iter::Peekablewhen the underlying iterator never ends.