| commit | e352c1e140292a75faa7b12b13bc2956f0515a43 | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Thu Dec 31 16:41:05 2020 -0800 |
| committer | David Tolnay <dtolnay@gmail.com> | Thu Dec 31 17:15:56 2020 -0800 |
| tree | 6cc8c0b887d1ee662641add82a70f2f3e3fbb0f2 | |
| parent | 292cfffe5a3cefc9a60761462206cb526467491f [diff] [blame] |
Add wrapper to prevent iteration of unordered maps
diff --git a/syntax/set.rs b/syntax/set.rs index 0df5f87..ca0c43e 100644 --- a/syntax/set.rs +++ b/syntax/set.rs
@@ -105,6 +105,10 @@ { self.0.get(value) } + + pub fn retain(&mut self, f: impl FnMut(&T) -> bool) { + self.0.retain(f); + } } }