Lines Matching defs:shrink
14266 unsafe fn shrink(
14804 handle_reserve(self.shrink(amount));
14877 fn shrink(&mut self, amount: usize) -> Result<(), TryReserveError> {
14878 assert!(amount <= self.capacity(), "Tried to shrink to a larger capacity");
14885 self.alloc.shrink(ptr, layout, new_layout).map_err(|_| TryReserveError::AllocError {
39779 /// to shrink, stocks up the parent, recursively.
47128 /// `Vec` will never automatically shrink itself, even if completely empty. This