std: Iterator Adapter Catalog

This MOC links the standard-library iterator method-family notes for choosing the right adapter or consuming operation in Rust edition 2024 / stable 1.85+.

What it is

This catalog is a map for practical Iterator method selection. It groups related methods by the job they do. Each linked note is intentionally atomic at the method-family level. The focus is the stable standard library. Nightly-only methods mentioned in rustdoc are not presented as primary tools. Use this MOC when you know what you want a pipeline to do but not which method name best expresses it. Use Iterator Adapters for the broad concept of lazy iterator transformation. Use Consuming Adapters for terminal methods that consume an iterator and return a non-iterator result. Use The Iterator Trait when implementing custom iterators. Use Iterators for the language-level iteration model.

Method families

Choosing quickly

Stable scope

The source rustdoc includes nightly-only methods such as try_collect, collect_into, partition_in_place, and try_reduce. Those are deliberately not central notes in this catalog. For stable Rust edition 2024 / 1.85+, prefer stable methods listed in the linked notes. When a nightly method looks attractive, check whether stable collect, Extend::extend, try_fold, or an explicit loop expresses the same behavior. For third-party iterator helpers, cite docs.rs and verify the latest version before adding a note. This catalog currently uses only std.

Common composition paths

Pitfall index

See also

Iterator Adapters · Consuming Adapters · The Iterator Trait · Iterators · Lazy Evaluation · Closures · Fn, FnMut, FnOnce · Option · Result · Vec · String and str · Type Inference

Sources