Struct sized_chunks::inline_array::Drain[][src]

pub struct Drain<'a, A, T> { /* fields omitted */ }

A draining iterator over the elements of an InlineArray.

“Draining” means that as the iterator yields each element, it’s removed from the InlineArray. When the iterator terminates, the array will be empty. This is different from the consuming iterator Iter in that Iter will take ownership of the InlineArray and discard it when you’re done iterating, while Drain leaves you still owning the drained InlineArray.

Trait Implementations

impl<'a, A, T> DoubleEndedIterator for Drain<'a, A, T>[src]

impl<'a, A, T> ExactSizeIterator for Drain<'a, A, T>[src]

impl<'a, A, T> FusedIterator for Drain<'a, A, T>[src]

impl<'a, A, T> Iterator for Drain<'a, A, T>[src]

type Item = A

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, A, T> RefUnwindSafe for Drain<'a, A, T> where
    A: RefUnwindSafe,
    T: RefUnwindSafe

impl<'a, A, T> Send for Drain<'a, A, T> where
    A: Send,
    T: Send

impl<'a, A, T> Sync for Drain<'a, A, T> where
    A: Sync,
    T: Sync

impl<'a, A, T> Unpin for Drain<'a, A, T>

impl<'a, A, T> !UnwindSafe for Drain<'a, A, T>

Blanket Implementations

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

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

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

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

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

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> Same<T> for T[src]

type Output = T

Should always be Self

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

type Error = Infallible

The type returned in the event of a conversion error.

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.