Struct ExtractIf

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

An extracting iterator for IndexSet.

This struct is created by [IndexSet::extract_if()]. See its documentation for more.

Trait Implementations

impl<T, F> Debug for ExtractIf<'_, T, F> where T: Debug,

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

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

impl<T, F> Iterator for ExtractIf<'_, T, F> where F: FnMut(&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> !UnwindSafe for ExtractIf<'a, T, F>

impl<'a, T, F> Freeze for ExtractIf<'a, T, F> where ExtractCore<'a, T, ()>: Freeze, F: Freeze,

impl<'a, T, F> RefUnwindSafe for ExtractIf<'a, T, F> where ExtractCore<'a, T, ()>: RefUnwindSafe, F: RefUnwindSafe,

impl<'a, T, F> Send for ExtractIf<'a, T, F> where ExtractCore<'a, T, ()>: Send, F: Send,

impl<'a, T, F> Sync for ExtractIf<'a, T, F> where ExtractCore<'a, T, ()>: Sync, F: Sync,

impl<'a, T, F> Unpin for ExtractIf<'a, T, F> where ExtractCore<'a, T, ()>: Unpin, F: Unpin,

impl<'a, T, F> UnsafeUnpin for ExtractIf<'a, T, F> where ExtractCore<'a, T, ()>: UnsafeUnpin, F: UnsafeUnpin,

Blanket Implementations

impl<I> IntoIterator for ExtractIf<'a, T, F> 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> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for ExtractIf<'a, T, F> 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> 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> where U: TryFrom<T>,

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