EnumerateAn iterator that yields the current count and the element during iteration.
FilterAn iterator that filters the elements of iter with predicate.
FilterMapAn iterator that uses f to both filter and map elements from iter.
FlatMapAn iterator that maps each element to an iterator, and yields the elements
of the produced iterators.
FlattenAn iterator that flattens one level of nesting in an iterator of things
that can be turned into iterators.
FuseAn iterator that yields None forever after the underlying iterator
yields None once.
GenericShuntAn iterator adapter that produces output as long as the underlying
iterator produces values where Try::branch says to ControlFlow::Continue.
InspectAn iterator that calls a function with a reference to each element before
yielding it.
IntersperseAn iterator adapter that places a separator between all elements.
IntersperseWithAn iterator adapter that places a separator between all elements.
MapAn iterator that maps the values of iter with f.
MapWhileAn iterator that only accepts elements while predicate returns Some(_).
MapWindowsAn iterator over the mapped windows of another iterator.
PeekableAn iterator with a peek() that returns an optional reference to the next
element.
RevA double-ended iterator with the direction inverted.
ScanAn iterator to maintain state while iterating another iterator.
SkipAn iterator that skips over n elements of iter.
SkipWhileAn iterator that rejects elements while predicate returns true.
StepByAn iterator for stepping iterators by a custom amount.
TakeAn iterator that only iterates over the first n iterations of iter.
TakeWhileAn iterator that only accepts elements while predicate returns true.
ZipAn iterator that iterates two other iterators simultaneously.
Traits
SourceIterThis trait provides transitive access to source-stage in an iterator-adapter pipeline
under the conditions that
TrustedRandomAccessAn iterator whose items are random-accessible efficiently
TrustedRandomAccessNoCoerceLike TrustedRandomAccess but without any of the requirements / guarantees around
coercions to supertypes after __iterator_get_unchecked (they aren’t allowed here!), and
without the requirement that subtypes / supertypes implement TrustedRandomAccessNoCoerce.
Functions
chainConverts the arguments to iterators and links them together, in a chain.
try_processProcess the given iterator as if it yielded the item's Try::Output
type instead. Any Try::Residuals encountered will stop the inner iterator
and be propagated back to the overall result.
zipConverts the arguments to iterators and zips them.