[][src]Struct sized_chunks::sparse_chunk::OptionDrain

pub struct OptionDrain<A, N: Bits + ChunkLength<A>> { /* fields omitted */ }

A draining iterator over Options of the elements of a SparseChunk.

Iterates over every index in the SparseChunk, from zero to its full capacity, returning an Option<A> for each index.

Trait Implementations

impl<'a, A, N: Bits + ChunkLength<A>> Iterator for OptionDrain<A, N>[src]

type Item = Option<A>

The type of the elements being iterated over.

Auto Trait Implementations

impl<A, N> RefUnwindSafe for OptionDrain<A, N> where
    <N as ChunkLength<A>>::SizedType: RefUnwindSafe,
    <N as Bits>::Store: RefUnwindSafe

impl<A, N> Send for OptionDrain<A, N> where
    <N as ChunkLength<A>>::SizedType: Send,
    <N as Bits>::Store: Send

impl<A, N> Sync for OptionDrain<A, N> where
    <N as ChunkLength<A>>::SizedType: Sync,
    <N as Bits>::Store: Sync

impl<A, N> Unpin for OptionDrain<A, N> where
    <N as ChunkLength<A>>::SizedType: Unpin,
    <N as Bits>::Store: Unpin

impl<A, N> UnwindSafe for OptionDrain<A, N> where
    <N as ChunkLength<A>>::SizedType: UnwindSafe,
    <N as Bits>::Store: UnwindSafe

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.