TransIter -- transitive iterator and utilities
This small rust crate provides TransIter
, an iterator suitable for navigating
recursive structures and DAGs. The iterator allows for multiple modes of
iteration.
In addition to the iterator itself, this crate provides some convenience traits for creating such an iterator.
Example
use IntoTransIter;
let names: = String new
.trans_iter_with
.take
.collect;
assert_eq!;
Similar crates
The following crates serve a similar purpose:
- reciter provides a macro for creating an iterator from a recursive function.
License
This work is provided under the MIT license. See LICENSE
for more details.