Skip to content

Glossary: Rust Beyond the Basics

adapter

Also written: adapters, iterator adapter

An iterator method such as `map` or `filter` that turns one iterator into another. Adapters are lazy and do nothing until a consumer asks for values.

Where the book teaches it

Related terms

consumerlazy