Struct lending_iterator::lending_iterator::adapters::IntoIter
source · pub struct IntoIter<I: ?Sized + LendingIterator>(pub I);
Expand description
The impl Iterator
(not a LendingIterator
!) returned by
.into_iter()
.
Note: since this wrapper only exists to avoid coherence issues,
it is guaranteed to be a #[repr(transparent)]
wrapper around its
inner I
.
This is a property unsafe
code can rely on: it can thus use transmute to
construct it.
It is also a property that will be upheld within future versions (should this property ever be broken in the future, the change would then be a semver-breaking one, and the type would be renamed to avoid footguns).
Tuple Fields§
§0: I
Trait Implementations§
source§impl<Item, I> Iterator for IntoIter<I>where
for<'any> I: LendingIteratorඞItem<'any, T = Item> + ?Sized + LendingIterator,
impl<Item, I> Iterator for IntoIter<I>where for<'any> I: LendingIteratorඞItem<'any, T = Item> + ?Sized + LendingIterator,
source§fn next(self: &mut IntoIter<I>) -> Option<Item>
fn next(self: &mut IntoIter<I>) -> Option<Item>
Advances the iterator and returns the next value. Read more
1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more
source§fn advance_by(&mut self, n: usize) -> Result<(), NonZeroUsize>
fn advance_by(&mut self, n: usize) -> Result<(), NonZeroUsize>
🔬This is a nightly-only experimental API. (
iter_advance_by
)Advances the iterator by
n
elements. Read moreAuto Trait Implementations§
impl<I: ?Sized> RefUnwindSafe for IntoIter<I>where I: RefUnwindSafe,
impl<I: ?Sized> Send for IntoIter<I>where I: Send,
impl<I: ?Sized> Sync for IntoIter<I>where I: Sync,
impl<I: ?Sized> Unpin for IntoIter<I>where I: Unpin,
impl<I: ?Sized> UnwindSafe for IntoIter<I>where I: UnwindSafe,
Blanket Implementations§
source§impl<I> IntoIterator for Iwhere
I: Iterator,
impl<I> IntoIterator for Iwhere I: Iterator,
source§impl<I, IntoIter> into_lending_iter<I, IntoIter> for Iwhere
I: IntoIterator<IntoIter = IntoIter>,
IntoIter: Iterator,
impl<I, IntoIter> into_lending_iter<I, IntoIter> for Iwhere I: IntoIterator<IntoIter = IntoIter>, IntoIter: Iterator,
source§fn into_lending_iter(self) -> FromIter<IntoIter> ⓘ
fn into_lending_iter(self) -> FromIter<IntoIter> ⓘ
Extension trait based convenience method version of from_iter()
.