Lines Matching full:vec
7 use super::Vec;
11 /// This struct is created by [`Vec::extract_if`].
19 /// let mut v = vec![0, 1, 2];
20 /// let iter: std::vec::ExtractIf<'_, _, _> = v.extract_if(|x| *x % 2 == 0);
33 pub(super) vec: &'a mut Vec<T, A>, field
38 /// The original length of `vec` prior to draining.
52 self.vec.allocator() in allocator()
67 let v = slice::from_raw_parts_mut(self.vec.as_mut_ptr(), self.old_len); in next()
103 // elements and tell the vec that they still exist. The backshift in drop()
106 let ptr = self.vec.as_mut_ptr(); in drop()
112 self.vec.set_len(self.old_len - self.del); in drop()