Struct Drain

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

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

Trait Implementations

impl<'a, T: Debug> Debug for Drain<'a, T>

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

impl<T: Send> ParallelIterator for Drain<'_, T>

type Item = T;
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, T> !UnwindSafe for Drain<'a, T>

impl<'a, T> Freeze for Drain<'a, T> where IntoIter<T>: Freeze, PhantomData<&'a mut HashSet<T>>: Freeze,

impl<'a, T> RefUnwindSafe for Drain<'a, T> where IntoIter<T>: RefUnwindSafe, PhantomData<&'a mut HashSet<T>>: RefUnwindSafe,

impl<'a, T> Send for Drain<'a, T> where IntoIter<T>: Send, PhantomData<&'a mut HashSet<T>>: Send,

impl<'a, T> Sync for Drain<'a, T> where IntoIter<T>: Sync, PhantomData<&'a mut HashSet<T>>: Sync,

impl<'a, T> Unpin for Drain<'a, T> where IntoIter<T>: Unpin, PhantomData<&'a mut HashSet<T>>: Unpin,

impl<'a, T> UnsafeUnpin for Drain<'a, T> where IntoIter<T>: UnsafeUnpin, PhantomData<&'a mut HashSet<T>>: UnsafeUnpin,

Blanket Implementations

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

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

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

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

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

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

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

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

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

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