Struct ExtractIf
#[must_use = "iterators are lazy and do nothing unless consumed; use `retain` or `extract_if().for_each(drop)` to remove and discard elements"]
pub struct ExtractIf<'a, K, V, R, F, A: AllocatorClone = Global> { pub(in ::collections::btree::map) pred: F, pub(in ::collections::btree::map) inner: ExtractIfInner<'a, K, V, R>, pub(in ::collections::btree::map) alloc: A }
This struct is created by the extract_if method on BTreeMap.
Fields
pred: Finner: ExtractIfInner<'a, K, V, R>alloc: AThe BTreeMap will outlive this IntoIter so we don't care about drop order for
alloc.
Trait Implementations
impl<K, V, R, F> FusedIterator for ExtractIf<'_, K, V, R, F>
where
K: PartialOrd,
R: RangeBounds<K>,
F: FnMut(&K, &mut V) -> bool,
impl<K, V, R, F, A> Debug for ExtractIf<'_, K, V, R, F, A>
where
K: Debug,
V: Debug,
A: AllocatorClone,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<K, V, R, F, A: AllocatorClone> Iterator for ExtractIf<'_, K, V, R, F, A>
where
K: PartialOrd,
R: RangeBounds<K>,
F: FnMut(&K, &mut V) -> bool,
type Item = (K, V);fn next(&mut self) -> Option<(K, V)>fn size_hint(&self) -> (usize, Option<usize>)