[][src]Struct core::array::IntoIter

pub struct IntoIter<T, const N: usize> where
    [T; N]: LengthAtMost32
{ /* fields omitted */ }
🔬 This is a nightly-only experimental API. (array_value_iter #65798)

A by-value array iterator.

Methods

impl<T, const N: usize> IntoIter<T, { N }> where
    [T; N]: LengthAtMost32
[src]

pub fn new(array: [T; N]) -> Self[src]

🔬 This is a nightly-only experimental API. (array_value_iter #65798)

Creates a new iterator over the given array.

Note: this method might never get stabilized and/or removed in the future as there will likely be another, preferred way of obtaining this iterator (either via IntoIterator for arrays or via another way).

Trait Implementations

impl<T, const N: usize> Drop for IntoIter<T, { N }> where
    [T; N]: LengthAtMost32
1.40.0[src]

impl<T: Clone, const N: usize> Clone for IntoIter<T, { N }> where
    [T; N]: LengthAtMost32
1.40.0[src]

impl<T, const N: usize> Iterator for IntoIter<T, { N }> where
    [T; N]: LengthAtMost32
1.40.0[src]

type Item = T

The type of the elements being iterated over.

impl<T, const N: usize> DoubleEndedIterator for IntoIter<T, { N }> where
    [T; N]: LengthAtMost32
1.40.0[src]

impl<T, const N: usize> ExactSizeIterator for IntoIter<T, { N }> where
    [T; N]: LengthAtMost32
1.40.0[src]

impl<T, const N: usize> FusedIterator for IntoIter<T, { N }> where
    [T; N]: LengthAtMost32
1.40.0[src]

impl<T, const N: usize> TrustedLen for IntoIter<T, { N }> where
    [T; N]: LengthAtMost32
1.40.0[src]

impl<T: Debug, const N: usize> Debug for IntoIter<T, { N }> where
    [T; N]: LengthAtMost32
1.40.0[src]

Auto Trait Implementations

impl<const N: usize, T> Send for IntoIter<T, N> where
    T: Send

impl<const N: usize, T> Sync for IntoIter<T, N> where
    T: Sync

impl<const N: usize, T> Unpin for IntoIter<T, N> where
    T: Unpin

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]