Expand description
Functions, extension traits and types allowing direct construction of
LendingIterator
s (no need for custom types or implementations!).
Structs§
- FromFn
- The
impl LendingIterator
returned byfrom_fn()
. - From
Iter - Note: since this wrapper only exists to avoid coherence issues,
it is guaranteed to be a
#[repr(transparent)]
wrapper around its innerI
. - From
Stream futures
- The
impl LendingIterator
returned byfrom_stream()
. - Repeat
Mut - The
impl LendingIterator
returned byrepeat_mut()
. - Windows
Mut - The
impl LendingIterator
returned bywindows_mut()
.
Traits§
Functions§
- from_fn
- Main ad-hoc / closure-based constructor of
LendingIterator
s. - from_
iter - “Lifts” / converts an [
Into
]Iterator
into animpl LendingIterator
- from_
stream futures
- “Lifts” and converts an
Unpin
Stream
into animpl LendingIterator
which lends futures (anS
, 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).