[][src]Struct dlv_list::Drain

pub struct Drain<'entries, EntryData> { /* fields omitted */ }

An iterator that yields and removes all entries from the list.

Methods

impl<'_, EntryData> Drain<'_, EntryData>[src]

Important traits for Iter<'entries, EntryData>
pub fn iter(&self) -> Iter<EntryData>[src]

Creates an iterator that yields immutable references to entries in the list.

Trait Implementations

impl<'_, EntryData> Debug for Drain<'_, EntryData> where
    EntryData: Debug
[src]

impl<'_, EntryData> DoubleEndedIterator for Drain<'_, EntryData>[src]

impl<'_, EntryData> Drop for Drain<'_, EntryData>[src]

impl<'_, EntryData> ExactSizeIterator for Drain<'_, EntryData>[src]

impl<'_, EntryData> FusedIterator for Drain<'_, EntryData>[src]

impl<'_, EntryData> Iterator for Drain<'_, EntryData>[src]

type Item = EntryData

The type of the elements being iterated over.

Auto Trait Implementations

impl<'entries, EntryData> RefUnwindSafe for Drain<'entries, EntryData> where
    EntryData: RefUnwindSafe

impl<'entries, EntryData> Send for Drain<'entries, EntryData> where
    EntryData: Send

impl<'entries, EntryData> Sync for Drain<'entries, EntryData> where
    EntryData: Sync

impl<'entries, EntryData> Unpin for Drain<'entries, EntryData>

impl<'entries, EntryData> !UnwindSafe for Drain<'entries, EntryData>

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

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,