lending_iterator::lending_iterator

Module constructors

Source
Expand description

Functions, extension traits and types allowing direct construction of LendingIterators (no need for custom types or implementations!).

Structs§

FromFn
The impl LendingIterator returned by from_fn().
FromIter
Note: since this wrapper only exists to avoid coherence issues, it is guaranteed to be a #[repr(transparent)] wrapper around its inner I.
FromStreamfutures
The impl LendingIterator returned by from_stream().
RepeatMut
The impl LendingIterator returned by repeat_mut().
WindowsMut
The impl LendingIterator returned by windows_mut().

Traits§

into_lending_iter
windows_mut

Functions§

from_fn
Main ad-hoc / closure-based constructor of LendingIterators.
from_iter
“Lifts” / converts an [Into]Iterator into an impl LendingIterator
from_streamfutures
“Lifts” and converts an Unpin Stream into an impl LendingIterator which lends futures (an S, say).
repeat_mut
Returns an infinite impl LendingIterator which lends &'next mut State items.
windows_mut
Creates an impl LendingIterator over the sliding windows of a slice, with &mut / exclusive access over them (yields &mut [T] slices).