Module no_std_compat2::iter
source · Available on non-crate feature
std only.Structs
- ArrayChunksExperimentalAn iterator over
Nelements of the iterator at a time. - ByRefSizedExperimentalLike
Iterator::by_ref, but requiringSizedso it can forward generics. - IntersperseExperimentalAn iterator adapter that places a separator between all elements.
- IntersperseWithExperimentalAn iterator adapter that places a separator between all elements.
- An iterator that links two iterators together, in a chain.
- An iterator that clones the elements of an underlying iterator.
- An iterator that copies the elements of an underlying iterator.
- An iterator that repeats endlessly.
- An iterator that yields nothing.
- An iterator that yields the current count and the element during iteration.
- An iterator that filters the elements of
iterwithpredicate. - An iterator that uses
fto both filter and map elements fromiter. - An iterator that maps each element to an iterator, and yields the elements of the produced iterators.
- An iterator that flattens one level of nesting in an iterator of things that can be turned into iterators.
- An iterator where each iteration calls the provided closure
F: FnMut() -> Option<T>. - An iterator that yields
Noneforever after the underlying iterator yieldsNoneonce. - An iterator that calls a function with a reference to each element before yielding it.
- An iterator that maps the values of
iterwithf. - An iterator that only accepts elements while
predicatereturnsSome(_). - An iterator that yields an element exactly once.
- An iterator that yields a single element of type
Aby applying the provided closureF: FnOnce() -> A. - An iterator with a
peek()that returns an optional reference to the next element. - An iterator that repeats an element endlessly.
- An iterator that repeats elements of type
Aendlessly by applying the provided closureF: FnMut() -> A. - A double-ended iterator with the direction inverted.
- An iterator to maintain state while iterating another iterator.
- An iterator that skips over
nelements ofiter. - An iterator that rejects elements while
predicatereturnstrue. - An iterator for stepping iterators by a custom amount.
- An new iterator where each successive item is computed based on the preceding one.
- An iterator that only iterates over the first
niterations ofiter. - An iterator that only accepts elements while
predicatereturnstrue. - An iterator that iterates two other iterators simultaneously.
Traits
- StepExperimentalObjects that have a notion of successor and predecessor operations.
- TrustedLenExperimentalAn iterator that reports an accurate length using size_hint.
- TrustedStepExperimentalA type that upholds all invariants of
Step. - An iterator able to yield elements from both ends.
- An iterator that knows its exact length.
- Extend a collection with the contents of an iterator.
- Conversion from an
Iterator. - An iterator that always continues to yield
Nonewhen exhausted. - Conversion into an
Iterator. - A trait for dealing with iterators.
- Trait to represent types that can be created by multiplying elements of an iterator.
- Trait to represent types that can be created by summing up an iterator.
Functions
- from_generatorExperimentalCreates a new iterator where each iteration calls the provided generator.
- Creates an iterator that yields nothing.
- Creates a new iterator where each iteration calls the provided closure
F: FnMut() -> Option<T>. - Creates an iterator that yields an element exactly once.
- Creates an iterator that lazily generates a value exactly once by invoking the provided closure.
- Creates a new iterator that endlessly repeats a single element.
- Creates a new iterator that repeats elements of type
Aendlessly by applying the provided closure, the repeater,F: FnMut() -> A. - Creates a new iterator where each successive item is computed based on the preceding one.
- Converts the arguments to iterators and zips them.