Crate ad_hoc_iterator
source ·Expand description
Ad hoc Iterator
This is a very small crate providing a macro and a function that allow for conveniently creating iterators on the fly.
With the iterate
macro of this crate, you can however do
exactly that. See it’s documentation for more information.
With the iterator_from
function, you can directly create
an iterator from an FnMut
closure (which is exactly the same as what the
iterate
macro is doing behind the scenes).
Macros
- Create an ad hoc iterator.
Functions
- Turn a closure into an iterator.