Searched refs:ExtractIf (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-6.6/rust/alloc/vec/ |
H A D | extract_if.rs | 20 /// let iter: std::vec::ExtractIf<'_, _, _> = v.extract_if(|x| *x % 2 == 0); 25 pub struct ExtractIf< structure names 44 impl<T, F, A: Allocator> ExtractIf<'_, T, F, A> impls 57 impl<T, F, A: Allocator> Iterator for ExtractIf<'_, T, F, A> 93 impl<T, F, A: Allocator> Drop for ExtractIf<'_, T, F, A>
|
H A D | mod.rs | 78 pub use self::extract_if::ExtractIf; 3198 /// If the returned `ExtractIf` is not exhausted, e.g. because it is dropped without iterating 3243 pub fn extract_if<F>(&mut self, filter: F) -> ExtractIf<'_, T, F, A> in extract_if() 3254 ExtractIf { vec: self, idx: 0, del: 0, old_len, pred: filter } in extract_if()
|
Completed in 5 milliseconds