#infinite #iterator #endless

no-std infinite-iterator

A trait for iterators that never end

1 unstable release

0.1.0 May 29, 2022

#5 in #endless

MIT license

15KB
313 lines

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.

No runtime deps

Features