std::iter

This module is used for iteration.

Structs, Traits, and Enums

  • StructsChain (strings two iterators together), Cloned (clones the underlying iterator), Cycle (never-ending iterator), Empty (yields nothing), Enumerate (yields the current count and element while iterating), Filter (filters the elements of iter with predicate), FilterMap (iterator that uses a type for both filter and map from iter), FlatMap (maps each element to the iterator, yields the elements produced), Fuse (yields None continually once the underlying iterator first iterates None), Inspect (calls a function with a reference to each element before yielding it), Map (maps the values of iter with a type), Once (yields an element once), Peekable (allows peek() to be used), Repeat (repeats an element forever), Rev (double ended iterator with the read direction reversed), Scan (maintains state while iterating another iterator), Skip (skips n elements of iter), SkipWhile (rejects elements while predicate is true), Take (only iterates over the first n of iter), TakeWhile (only accepts elements to iterate over while the predicate is true), and Zip (iterates two iterators simultaneously).
  • TraitsDoubleEndedIterator (yields the elements at both ends), ExactSizeIterator (exact length known), Extend (extends a collection with the contents of an iterator), FromIterator (converts from Iterator), ToIterator (converts into Iterator), and Iterator (interface for dealing with iterators).
  • Functionsempty (new iterator that yields nothing), once (new iterator that yields an element once), and repeat (new iterator that continually repeats a single element).
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset