Struct IntoIter

struct IntoIter<T, A: Allocator = crate::alloc::Global> { ... }

An owning iterator over the elements of a LinkedList.

This struct is created by the into_iter method on LinkedList (provided by the IntoIterator trait). See its documentation for more.

Implementations

impl<I> IntoIterator for IntoIter<T, A>

fn into_iter(self: Self) -> I

impl<T> Any for IntoIter<T, A>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for IntoIter<T, A>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for IntoIter<T, A>

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for IntoIter<T, A>

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> Default for IntoIter<T>

fn default() -> Self

Creates an empty linked_list::IntoIter.

# use std::collections::linked_list;
let iter: linked_list::IntoIter<u8> = Default::default();
assert_eq!(iter.len(), 0);

impl<T> From for IntoIter<T, A>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for IntoIter<T, A>

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, A> Freeze for IntoIter<T, A>

impl<T, A> RefUnwindSafe for IntoIter<T, A>

impl<T, A> Send for IntoIter<T, A>

impl<T, A> Sync for IntoIter<T, A>

impl<T, A> Unpin for IntoIter<T, A>

impl<T, A> UnwindSafe for IntoIter<T, A>

impl<T, A: Allocator> DoubleEndedIterator for IntoIter<T, A>

fn next_back(self: &mut Self) -> Option<T>

impl<T, A: Allocator> ExactSizeIterator for IntoIter<T, A>

impl<T, A: Allocator> FusedIterator for IntoIter<T, A>

impl<T, A: Allocator> Iterator for IntoIter<T, A>

fn next(self: &mut Self) -> Option<T>
fn size_hint(self: &Self) -> (usize, Option<usize>)

impl<T, U> Into for IntoIter<T, A>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for IntoIter<T, A>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for IntoIter<T, A>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

impl<T: $crate::clone::Clone, A: $crate::clone::Clone + Allocator> Clone for IntoIter<T, A>

fn clone(self: &Self) -> IntoIter<T, A>

impl<T: fmt::Debug, A: Allocator> Debug for IntoIter<T, A>

fn fmt(self: &Self, f: &mut fmt::Formatter<'_>) -> fmt::Result