Module iter

Source
Expand description

Composable external iteration.

Extends: std::{iter}


Structs§

Iter
🌐 🔄 Iterator-related namespaced operations.
IterChain
🔄 core An iterator that links two iterators together, in a chain.
IterCloned
🔄 core An iterator that clones the elements of an underlying iterator.
IterCopied
🔄 core An iterator that copies the elements of an underlying iterator.
IterCycle
🔄 core An iterator that repeats endlessly.
IterEmpty
🔄 core An iterator that yields nothing.
IterEnumerate
🔄 core An iterator that yields the current count and the element during iteration.
IterFilter
🔄 core An iterator that filters the elements of iter with predicate.
IterFilterMap
🔄 core An iterator that uses f to both filter and map elements from iter.
IterFlatMap
🔄 core An iterator that maps each element to an iterator, and yields their elements.
IterFlatten
🔄 core An iterator that flattens one level of nesting in an iterator of iterables.
IterFromFn
🔄 core An iterator where each iteration calls a closure F: FnMut() -> Option<T>.
IterFuse
🔄 core An iterator that yields None forever after the underlying yields None once.
IterInspect
🔄 core An iterator that calls a fn with a reference to each element before yielding it.
IterMap
🔄 core An iterator that maps the values of iter with f.
IterMapWhile
🔄 core An iterator that only accepts elements while predicate returns Some(_).
IterOnce
🔄 core An iterator that yields an element exactly once.
IterOnceWith
🔄 core An iterator that yields a single element A by calling F: FnOnce() -> A.
IterPeekable
🔄 core An iterator with a peek() that returns an optional ref to the next element.
IterRepeat
🔄 core An iterator that repeats an element endlessly.
IterRepeatN
🔄 core An iterator that repeats an element an exact number of times.
IterRepeatWith
🔄 core An iterator that endlessly repeats A by calling F: FnMut() -> A.
IterRev
🔄 core A double-ended iterator with the direction inverted.
IterScan
🔄 core An iterator to maintain state while iterating another iterator.
IterSkip
🔄 core An iterator that skips over n elements of iter.
IterSkipWhile
🔄 core An iterator that rejects elements while predicate returns true.
IterStepBy
🔄 core An iterator for stepping iterators by a custom amount.
IterSuccessors
🔄 core An iterator where each successive item is computed based on the preceding one.
IterTake
🔄 core An iterator that only iterates over the first n iterations of iter.
IterTakeWhile
🔄 core An iterator that only accepts elements while predicate returns true.
IterZip
🔄 core An iterator that iterates two other iterators simultaneously.

Traits§

Iterator
🔄 core A trait for dealing with iterators.
IteratorDoubleEnded
🔄 core An iterator able to yield elements from both ends.
IteratorExactSize
🔄 core An iterator that knows its exact length.
IteratorExtend
🔄 core Extend a collection with the contents of an iterator.
IteratorFrom
🔄 core Conversion from an Iterator.
IteratorFused
🔄 core An iterator that always continues to yield None when exhausted.
IteratorInto
🔄 core Conversion into an Iterator.
IteratorMultiUnzipdep_itertools
🔄 itertools An iterator that can be unzipped into multiple collections.
IteratorPeekingNextdep_itertools
🔄 itertools An iterator that allows peeking at an element before deciding to accept it.
IteratorProduct
🔄 core Represents types that can be created by multiplying elements of an iterator.
IteratorSum
🔄 core Represents types that can be created by summing up an iterator.
Itertoolsdep_itertools
🔄 itertools An Iterator blanket impl providing extra adaptors and methods.

Functions§

iter_from_coroutineExperimentalnightly_coro
core Creates an iterator where each iteration calls the provided coroutine.