Struct ExtractIf

#[must_use = "Iterators are lazy unless consumed"]
pub struct ExtractIf<'a, T, F, A: Allocator = Global> { /* private fields */ }

A draining iterator over entries of a HashTable which don't satisfy the predicate f.

This struct is created by HashTable::extract_if. See its documentation for more.

Trait Implementations

impl<T, F, A: Allocator> FusedIterator for ExtractIf<'_, T, F, A> where F: FnMut(&mut T) -> bool,

impl<T, F, A: Allocator> Iterator for ExtractIf<'_, T, F, A> where F: FnMut(&mut T) -> bool,

type Item = T;
fn next(&mut self) -> Option<Self::Item>
fn size_hint(&self) -> (usize, Option<usize>)

Auto Trait Implementations

impl<'a, T, F, A = Global> !UnwindSafe for ExtractIf<'a, T, F, A>

impl<'a, T, F, A> Freeze for ExtractIf<'a, T, F, A> where F: Freeze, RawExtractIf<'a, T, A>: Freeze,

impl<'a, T, F, A> RefUnwindSafe for ExtractIf<'a, T, F, A> where F: RefUnwindSafe, RawExtractIf<'a, T, A>: RefUnwindSafe,

impl<'a, T, F, A> Send for ExtractIf<'a, T, F, A> where F: Send, RawExtractIf<'a, T, A>: Send,

impl<'a, T, F, A> Sync for ExtractIf<'a, T, F, A> where F: Sync, RawExtractIf<'a, T, A>: Sync,

impl<'a, T, F, A> Unpin for ExtractIf<'a, T, F, A> where F: Unpin, RawExtractIf<'a, T, A>: Unpin,

impl<'a, T, F, A> UnsafeUnpin for ExtractIf<'a, T, F, A> where F: UnsafeUnpin, RawExtractIf<'a, T, A>: UnsafeUnpin,

Blanket Implementations

impl<I> IntoIterator for ExtractIf<'a, T, F, A> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

impl<T> Any for ExtractIf<'a, T, F, A> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ExtractIf<'a, T, F, A> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ExtractIf<'a, T, F, A> where T: ?Sized,

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

impl<T> From<T> for ExtractIf<'a, T, F, A>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for ExtractIf<'a, T, F, A> where U: From<T>,

fn into(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<U> for ExtractIf<'a, T, F, A> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for ExtractIf<'a, T, F, A> where U: TryFrom<T>,

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