Struct Drain

pub struct Drain<'a, K, V> { /* private fields */ }

Draining parallel iterator that moves out of a hash map, but keeps the total capacity.

Trait Implementations

impl<'a, K: Debug, V: Debug> Debug for Drain<'a, K, V>

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

impl<K: Send, V: Send> ParallelIterator for Drain<'_, K, V>

type Item = (K, V);
fn drive_unindexed<C>(self, consumer: C) -> C::Result
where
    C: UnindexedConsumer<Self::Item>,
fn opt_len(&self) -> Option<usize>

Auto Trait Implementations

impl<'a, K, V> !UnwindSafe for Drain<'a, K, V>

impl<'a, K, V> Freeze for Drain<'a, K, V> where IntoIter<(K, V)>: Freeze, PhantomData<&'a mut HashMap<K, V>>: Freeze,

impl<'a, K, V> RefUnwindSafe for Drain<'a, K, V> where IntoIter<(K, V)>: RefUnwindSafe, PhantomData<&'a mut HashMap<K, V>>: RefUnwindSafe,

impl<'a, K, V> Send for Drain<'a, K, V> where IntoIter<(K, V)>: Send, PhantomData<&'a mut HashMap<K, V>>: Send,

impl<'a, K, V> Sync for Drain<'a, K, V> where IntoIter<(K, V)>: Sync, PhantomData<&'a mut HashMap<K, V>>: Sync,

impl<'a, K, V> Unpin for Drain<'a, K, V> where IntoIter<(K, V)>: Unpin, PhantomData<&'a mut HashMap<K, V>>: Unpin,

impl<'a, K, V> UnsafeUnpin for Drain<'a, K, V> where IntoIter<(K, V)>: UnsafeUnpin, PhantomData<&'a mut HashMap<K, V>>: UnsafeUnpin,

Blanket Implementations

impl<T> Any for Drain<'a, K, V> where T: 'static + ?Sized,

impl<T> Borrow<T> for Drain<'a, K, V> where T: ?Sized,

impl<T> BorrowMut<T> for Drain<'a, K, V> where T: ?Sized,

impl<T> From<T> for Drain<'a, K, V>

impl<T> IntoEither for Drain<'a, K, V>

impl<T> IntoParallelIterator for Drain<'a, K, V> where T: ParallelIterator,

impl<T> Pointable for Drain<'a, K, V>

impl<T, U> Into<U> for Drain<'a, K, V> where U: From<T>,

impl<T, U> TryFrom<U> for Drain<'a, K, V> where U: Into<T>,

impl<T, U> TryInto<U> for Drain<'a, K, V> where U: TryFrom<T>,