Same as [`std::vec::Vec::retain`].
(&mut self, f: F)
| 207 | |
| 208 | /// Same as [`std::vec::Vec::retain`]. |
| 209 | pub fn retain<F>(&mut self, f: F) |
| 210 | where |
| 211 | F: FnMut(&T) -> bool, |
| 212 | { |
| 213 | self.inner.retain(f); |
| 214 | } |
| 215 | |
| 216 | /// Same as [`std::vec::Vec::retain_mut`]. |
| 217 | pub fn retain_mut<F>(&mut self, f: F) |
no outgoing calls