The Iterator and IntoIterator TraitsCreating Iteratorsiter and iter_mut MethodsIntoIterator Implementationsdrain MethodsOther Iterator SourcesIterator Adaptersmap and filterfilter_map and flat_mapscantake and take_whileskip and skip_whilepeekablefuseReversible Iterators and revinspectchainenumeratezipby_refclonedcycleConsuming IteratorsSimple Accumulation: count, sum, productmax, minmax_by, min_bymax_by_key, min_by_keyComparing Item Sequencesany and allposition, rposition, and ExactSizeIteratorfoldnthlastfindBuilding Collections: collect and FromIteratorThe Extend TraitpartitionImplementing Your Own Iterators