Add support for iterator pattern

- Adds support for iterator pattern found in native Rust libraries