pub trait ConstIterator {
    type Item<'a>
       where Self: 'a;

    // Required method
    fn next<'a>(&'a mut self) -> Option<Self::Item<'a>>;
}

Required Associated Types§

source

type Item<'a> where Self: 'a

Required Methods§

source

fn next<'a>(&'a mut self) -> Option<Self::Item<'a>>

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T, const N: usize> ConstIterator for ConstIter<'_, T, N>

§

type Item<'a> = &'a T where ConstIter<'_, T, N>: 'a

source§

impl<T, const N: usize> ConstIterator for ConstIterMut<'_, T, N>

§

type Item<'a> = &'a mut T where ConstIterMut<'_, T, N>: 'a

source§

impl<T, const N: usize, const DIR: bool> ConstIterator for IntoConstIter<T, N, DIR>

§

type Item<'a> = T where IntoConstIter<T, N, DIR>: 'a

source§

impl<T, const N: usize, const DIR: bool> ConstIterator for IntoConstIter<T, N, DIR, true>

§

type Item<'a> = (usize, T) where IntoConstIter<T, N, DIR, true>: 'a