Skip to content

Commit 4f62778

Browse files
committed
impl FusedIterator for ExtractIf
1 parent e09eaaf commit 4f62778

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/map/iter.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,8 @@ where
817817
}
818818
}
819819

820+
impl<K, V, F> FusedIterator for ExtractIf<'_, K, V, F> where F: FnMut(&K, &mut V) -> bool {}
821+
820822
impl<'a, K, V, F> fmt::Debug for ExtractIf<'a, K, V, F>
821823
where
822824
K: fmt::Debug,

src/set/iter.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -669,6 +669,8 @@ where
669669
}
670670
}
671671

672+
impl<T, F> FusedIterator for ExtractIf<'_, T, F> where F: FnMut(&T) -> bool {}
673+
672674
impl<'a, T, F> fmt::Debug for ExtractIf<'a, T, F>
673675
where
674676
T: fmt::Debug,

0 commit comments

Comments
 (0)