Struct Iter

pub struct Iter<'a, T> { /* private fields */ }

An iterator over the items of an IndexSet.

This struct is created by the IndexSet::iter method. See its documentation for more.

Implementations

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

fn as_slice(&self) -> &'a Slice<T>

Returns a slice of the remaining entries in the iterator.

Trait Implementations

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

type Item = &'a T;
fn next(&mut self) -> Option<Self::Item>
fn size_hint(&self) -> (usize, Option<usize>)
fn count(self) -> usize
fn nth(&mut self, n: usize) -> Option<Self::Item>
fn last(self) -> Option<Self::Item>
fn collect<C>(self) -> C
where
    C: FromIterator<Self::Item>,

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

fn clone(&self) -> Self

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

fn default() -> Self

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

fn next_back(&mut self) -> Option<Self::Item>
fn nth_back(&mut self, n: usize) -> Option<Self::Item>

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

fn len(&self) -> usize

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

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

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

Auto Trait Implementations

impl<'a, T> Freeze for Iter<'a, T> where Iter<'a, Bucket<T, ()>>: Freeze,

impl<'a, T> RefUnwindSafe for Iter<'a, T> where Iter<'a, Bucket<T, ()>>: RefUnwindSafe,

impl<'a, T> Send for Iter<'a, T> where Iter<'a, Bucket<T, ()>>: Send,

impl<'a, T> Sync for Iter<'a, T> where Iter<'a, Bucket<T, ()>>: Sync,

impl<'a, T> Unpin for Iter<'a, T> where Iter<'a, Bucket<T, ()>>: Unpin,

impl<'a, T> UnsafeUnpin for Iter<'a, T> where Iter<'a, Bucket<T, ()>>: UnsafeUnpin,

impl<'a, T> UnwindSafe for Iter<'a, T> where Iter<'a, Bucket<T, ()>>: UnwindSafe,

Blanket Implementations

impl<I> IntoIterator for Iter<'a, T> where I: Iterator,

impl<T> Any for Iter<'a, T> where T: 'static + ?Sized,

impl<T> Borrow<T> for Iter<'a, T> where T: ?Sized,

impl<T> BorrowMut<T> for Iter<'a, T> where T: ?Sized,

impl<T> CloneToUninit for Iter<'a, T> where T: Clone,

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

impl<T> ToOwned for Iter<'a, T> where T: Clone,

impl<T, U> Into<U> for Iter<'a, T> where U: From<T>,

impl<T, U> TryFrom<U> for Iter<'a, T> where U: Into<T>,

impl<T, U> TryInto<U> for Iter<'a, T> where U: TryFrom<T>,