Struct Iter

struct Iter<'a, T: 'a> { ... }

An iterator over the elements of a LinkedList.

This struct is created by [LinkedList::iter()]. See its documentation for more.

Implementations

impl<'a, T> DoubleEndedIterator for Iter<'a, T>

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

impl<'a, T> Freeze for Iter<'a, T>

impl<'a, T> Iterator for Iter<'a, T>

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

impl<'a, T> RefUnwindSafe for Iter<'a, T>

impl<'a, T> Unpin for Iter<'a, T>

impl<'a, T> UnwindSafe for Iter<'a, T>

impl<I> IntoIterator for Iter<'a, T>

fn into_iter(self: Self) -> I

impl<T> Any for Iter<'a, T>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Iter<'a, T>

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

impl<T> BorrowMut for Iter<'a, T>

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

impl<T> Clone for Iter<'_, T>

fn clone(self: &Self) -> Self

impl<T> CloneToUninit for Iter<'a, T>

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

impl<T> Default for Iter<'_, T>

fn default() -> Self

Creates an empty linked_list::Iter.

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

impl<T> ExactSizeIterator for Iter<'_, T>

impl<T> From for Iter<'a, T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FusedIterator for Iter<'_, T>

impl<T> ToOwned for Iter<'a, T>

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

impl<T, U> Into for Iter<'a, T>

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 Iter<'a, T>

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

impl<T, U> TryInto for Iter<'a, T>

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

impl<T: Sync> Send for Iter<'_, T>

impl<T: Sync> Sync for Iter<'_, T>

impl<T: fmt::Debug> Debug for Iter<'_, T>

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