ArrayIter

Struct ArrayIter 

Source
pub struct ArrayIter<'a, T: 'a, const N: usize> { /* private fields */ }
Expand description

ArrayIter is an implementation of ArrayIterator for &[T; N]

Trait Implementations§

Source§

impl<'a, T, const N: usize> ArrayIterator<N> for ArrayIter<'a, T, N>

Source§

type Item = &'a mut T

Item returned by this ArrayIterator
Source§

unsafe fn next(&mut self) -> Self::Item

Get the next item out of this ArrayIterator Read more
Source§

fn map<U, F: Fn(Self::Item) -> U>(self, f: F) -> Map<Self, F>

Lazily mutate the contents of an array
Source§

fn zip<B: IntoArrayIterator<N>>(self, b: B) -> Zip<Self, B::ArrayIter>

Lazily combine two ArrayIterators into an new one
Source§

fn collect(self) -> [Self::Item; N]

Collect the contents of this ArrayIterator into an array Read more
Source§

fn unzip<A, B>(self) -> ([A; N], [B; N])
where Self: ArrayIterator<N, Item = (A, B)>,

Separate and collect the contents of the ArrayIterator into two arrays

Auto Trait Implementations§

§

impl<'a, T, const N: usize> Freeze for ArrayIter<'a, T, N>

§

impl<'a, T, const N: usize> RefUnwindSafe for ArrayIter<'a, T, N>
where T: RefUnwindSafe,

§

impl<'a, T, const N: usize> !Send for ArrayIter<'a, T, N>

§

impl<'a, T, const N: usize> !Sync for ArrayIter<'a, T, N>

§

impl<'a, T, const N: usize> Unpin for ArrayIter<'a, T, N>

§

impl<'a, T, const N: usize> !UnwindSafe for ArrayIter<'a, T, N>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

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

Source§

type Item = <A as ArrayIterator<N>>::Item

Item returned by the ArrayIterator
Source§

type ArrayIter = A

The ArrayIterator returned
Source§

fn into_array_iter(self) -> <A as IntoArrayIterator<N>>::ArrayIter

Converts self into an ArrayIterator
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.