Struct ExtractIf

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

An extracting iterator for IndexMap.

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

Trait Implementations

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

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

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

impl<K, V, F> Iterator for ExtractIf<'_, K, V, F> where F: FnMut(&K, &mut V) -> bool,

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

Auto Trait Implementations

impl<'a, K, V, F> !UnwindSafe for ExtractIf<'a, K, V, F>

impl<'a, K, V, F> Freeze for ExtractIf<'a, K, V, F> where ExtractCore<'a, K, V>: Freeze, F: Freeze,

impl<'a, K, V, F> RefUnwindSafe for ExtractIf<'a, K, V, F> where ExtractCore<'a, K, V>: RefUnwindSafe, F: RefUnwindSafe,

impl<'a, K, V, F> Send for ExtractIf<'a, K, V, F> where ExtractCore<'a, K, V>: Send, F: Send,

impl<'a, K, V, F> Sync for ExtractIf<'a, K, V, F> where ExtractCore<'a, K, V>: Sync, F: Sync,

impl<'a, K, V, F> Unpin for ExtractIf<'a, K, V, F> where ExtractCore<'a, K, V>: Unpin, F: Unpin,

impl<'a, K, V, F> UnsafeUnpin for ExtractIf<'a, K, V, F> where ExtractCore<'a, K, V>: UnsafeUnpin, F: UnsafeUnpin,

Blanket Implementations

impl<I> IntoIterator for ExtractIf<'a, K, V, F> where I: Iterator,

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

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

fn from(t: T) -> T

Returns the argument unchanged.

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

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

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

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