Skip to content

Glossary: Software Design Patterns in Rust

Iterator

Also written: iterators, Iterator trait

Something that steps through a collection one item at a time without exposing how it's stored. Every `for` loop uses one, and you can implement the `Iterator` trait yourself.

Where the book teaches it

Related terms

Trait