Lines Matching defs:remove
1492 /// If you need to preserve the element order, use [`remove`] instead.
1494 /// [`remove`]: Vec::remove
1595 /// to be preserved, use [`swap_remove`] instead. If you'd like to remove
1610 /// assert_eq!(v.remove(1), 2);
1615 pub fn remove(&mut self, index: usize) -> T {
1647 /// In other words, remove all elements `e` for which `f(&e)` returns `false`.
1679 /// In other words, remove all elements `e` such that `f(&mut e)` returns `false`.
2140 // Drain will ptr::read out the values to remove.
3212 /// let val = vec.remove(i);
3226 /// regardless of whether you choose to keep or remove it.