Lines Matching defs:retain
6013 s.retain(|_| true);
6016 s.retain(|c| c != '_');
6019 s.retain(|c| c != 'β');
6022 s.retain(|c| c == 'α');
6025 s.retain(|_| false);
6031 s.retain(|_| {
6816 vec.retain(|&x| x % 2 == 0);
6825 v.retain(|r| match **r {
6842 v.retain(|r| match **r {
6867 v.retain(|w| match *w.0 {
9563 v.retain(is_odd);
12257 buf.retain(|&x| x % 2 == 0);
13672 a.retain(|&x| x != 2);
13677 a.retain(|_| true);
13681 a.retain(|&x| x < 50);
13685 a.retain(|_| false);
17443 /// s.retain(|c| c != '_');
17454 /// s.retain(|_| (keep[i], i += 1).0);
17459 pub fn retain<F>(&mut self, mut f: F)
20300 // this is required to retain raw/mut provenance such that e.g. `get_mut` can
24071 // this is required to retain raw/mut provenance such that e.g. `get_mut` can
30739 /// map.retain(|&k, _| k % 2 == 0);
30744 pub fn retain<F>(&mut self, mut f: F)
33025 /// set.retain(|&k| k % 2 == 0);
33029 pub fn retain<F>(&mut self, mut f: F)
34618 set.retain(|&k| k % 2 == 0);
36472 map.retain(|&k, _| k % 2 == 0);
42407 /// buf.retain(|&x| x % 2 == 0);
42421 /// buf.retain(|_| (keep[i], i += 1).0);
42425 pub fn retain<F>(&mut self, mut f: F)
45046 /// heap.retain(|x| x % 2 == 0); // only keep even numbers
45051 pub fn retain<F>(&mut self, mut f: F)
45057 self.data.retain(|e| {
48198 /// vec.retain(|&x| x % 2 == 0);
48209 /// vec.retain(|_| *iter.next().unwrap());
48213 pub fn retain<F>(&mut self, mut f: F)