Struct BoxedArrayIntoIter

pub struct BoxedArrayIntoIter<T, const N: usize, A: Allocator = Global> { pub(in ::boxed::iter) inner: IntoIter<T, A> }

A by-value Box<[T; N]> iterator.

Fields

inner: IntoIter<T, A>

Implementations

impl<T, const N: usize, A: Allocator> BoxedArrayIntoIter<T, N, A>

fn as_slice(&self) -> &[T]

Returns an immutable slice of all elements that have not been yielded yet.

fn as_mut_slice(&mut self) -> &mut [T]

Returns a mutable slice of all elements that have not been yielded yet.

Trait Implementations

impl<T, const N: usize, A: Allocator> DoubleEndedIterator for BoxedArrayIntoIter<T, N, A>

fn next_back(&mut self) -> Option<Self::Item>
fn rfold<Acc, Fold>(self, init: Acc, rfold: Fold) -> Acc
where
    Fold: FnMut(Acc, Self::Item) -> Acc,
fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

impl<T, const N: usize, A: Allocator> ExactSizeIterator for BoxedArrayIntoIter<T, N, A>

fn len(&self) -> usize
fn is_empty(&self) -> bool

impl<T, const N: usize, A: Allocator> FusedIterator for BoxedArrayIntoIter<T, N, A>

impl<T, const N: usize, A: Allocator> Iterator for BoxedArrayIntoIter<T, N, A>

type Item = T;
fn next(&mut self) -> Option<Self::Item>
fn size_hint(&self) -> (usize, Option<usize>)
fn fold<Acc, Fold>(self, init: Acc, fold: Fold) -> Acc
where
    Fold: FnMut(Acc, Self::Item) -> Acc,
fn count(self) -> usize
fn last(self) -> Option<Self::Item>
fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

impl<T, const N: usize, A: Allocator> TrustedLen for BoxedArrayIntoIter<T, N, A>

impl<T: Clone, const N: usize, A: Clone + Allocator> Clone for BoxedArrayIntoIter<T, N, A>

fn clone(&self) -> Self

impl<T: Debug, const N: usize, A: Allocator> Debug for BoxedArrayIntoIter<T, N, A>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<T, const N: usize, A> Freeze for BoxedArrayIntoIter<T, N, A> where IntoIter<T, A>: Freeze,

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

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

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

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

impl<T, const N: usize, A> UnsafeUnpin for BoxedArrayIntoIter<T, N, A> where IntoIter<T, A>: UnsafeUnpin,

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

Blanket Implementations

impl<I> IntoIterator for BoxedArrayIntoIter<T, N, A> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

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

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for BoxedArrayIntoIter<T, N, A> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for BoxedArrayIntoIter<T, N, A> where T: ?Sized,

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

impl<T> CloneToUninit for BoxedArrayIntoIter<T, N, A> where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for BoxedArrayIntoIter<T, N, A>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for BoxedArrayIntoIter<T, N, A> where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for BoxedArrayIntoIter<T, N, A>

impl<T> ToOwned for BoxedArrayIntoIter<T, N, A> where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for BoxedArrayIntoIter<T, N, A> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom<U> for BoxedArrayIntoIter<T, N, A> where U: Into<T>,

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

impl<T, U> TryInto<U> for BoxedArrayIntoIter<T, N, A> where U: TryFrom<T>,

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