Struct Drain

struct Drain<'a, T: Hash + Eq + Send> { ... }

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

Implementations

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

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

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

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

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

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

impl<'a, T: $crate::fmt::Debug + Hash + Eq + Send> Debug for Drain<'a, T>

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

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

fn type_id(self: &Self) -> TypeId

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

fn borrow(self: &Self) -> &T

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

fn borrow_mut(self: &mut Self) -> &mut T

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

fn from(t: T) -> T

Returns the argument unchanged.

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

fn into_par_iter(self: Self) -> T

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

unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T, U> Into for Drain<'a, T>

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Drain<'a, T>

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Drain<'a, T>

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>

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

fn drive_unindexed<C>(self: Self, consumer: C) -> <C as >::Result
where
    C: UnindexedConsumer<<Self as >::Item>
fn opt_len(self: &Self) -> Option<usize>