Ad hoc Iterator

Docs.rsLib.rsCrates.io

The Iterator Trait is very useful. The problem ist just that we can't simply construct an iterator in-place, but rather have to define a struct, impl the Iterator trait for it, and then return a value of that struct. This crates exists to alleviate that inconvenience.