Structs
-
Empty
An iterator that yields nothing.
-
FromCoroutine
An iterator over the values yielded by an underlying coroutine.
-
FromFn
An iterator where each iteration calls the provided closure
F: FnMut() -> Option<T>.
-
Once
An iterator that yields an element exactly once.
-
OnceWith
An iterator that yields a single element of type
A by
applying the provided closure F: FnOnce() -> A.
-
Repeat
An iterator that repeats an element endlessly.
-
RepeatN
An iterator that repeats an element an exact number of times.
-
RepeatWith
An iterator that repeats elements of type
A endlessly by
applying the provided closure F: FnMut() -> A.
-
Successors
An iterator which, starting from an initial item,
computes each successive item from the preceding one.
Functions
-
empty
Creates an iterator that yields nothing.
-
from_coroutine
Creates a new iterator where each iteration calls the provided coroutine.
-
from_fn
Creates an iterator with the provided closure
F: FnMut() -> Option<T> as its next method.
-
once
Creates an iterator that yields an element exactly once.
-
once_with
Creates an iterator that lazily generates a value exactly once by invoking
the provided closure.
-
repeat
Creates a new iterator that endlessly repeats a single element.
-
repeat_n
Creates a new iterator that repeats a single element a given number of times.
-
repeat_with
Creates a new iterator that repeats elements of type
A endlessly by
applying the provided closure, the repeater, F: FnMut() -> A.
-
successors
Creates an iterator which, starting from an initial item,
computes each successive item from the preceding one.
Macros
-
iter
Creates a new closure that returns an iterator where each iteration steps the given
generator to the next
yield statement.