Trait IntoArrayIterator

Source
pub trait IntoArrayIterator<const N: usize> {
    type Item;
    type ArrayIter: ArrayIterator<N, Item = Self::Item>;

    // Required method
    fn into_array_iter(self) -> Self::ArrayIter;
}
Expand description

Similar to IntoIterator, IntoArrayIterator allows types to become ArrayIterators

Required Associated Types§

Source

type Item

Item returned by the ArrayIterator

Source

type ArrayIter: ArrayIterator<N, Item = Self::Item>

The ArrayIterator returned

Required Methods§

Source

fn into_array_iter(self) -> Self::ArrayIter

Converts self into an ArrayIterator

Implementations on Foreign Types§

Source§

impl<'a, T, const N: usize> IntoArrayIterator<N> for &'a [T; N]

Source§

impl<'a, T, const N: usize> IntoArrayIterator<N> for &'a mut [T; N]

Source§

impl<T, const N: usize> IntoArrayIterator<N> for [T; N]

Implementors§

Source§

impl<A: ArrayIterator<N> + Sized, const N: usize> IntoArrayIterator<N> for A