Skip to content

Glossary: Rust in Practice

enumerate()

Also written: enumerate

An iterator adapter that pairs each item with its position starting at 0. The receipt parser uses it to get line numbers.

Where the book teaches it