[][src]Struct std::array::IntoIter

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

A by-value array iterator.

Methods

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

Important traits for IntoIter<T, N>
pub fn new(array: [T; N]) -> IntoIter<T, N>[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<const N: usize, T> Drop for IntoIter<T, N> where
    [T; N]: LengthAtMost32
1.40.0[src]

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

impl<const N: usize, T> 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<const N: usize, T> Clone for IntoIter<T, N> where
    T: Clone,
    [T; N]: LengthAtMost32
1.40.0[src]

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

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

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

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

Auto Trait Implementations

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

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

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

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

Blanket Implementations

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

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T, U> Into<U> for T where
    U: From<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> 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]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.