Lines Matching refs:new_len
1272 pub unsafe fn set_len(&mut self, new_len: usize) { in set_len()
1273 debug_assert!(new_len <= self.capacity()); in set_len()
1275 self.len = new_len; in set_len()
2041 pub fn resize_with<F>(&mut self, new_len: usize, f: F) in resize_with()
2046 if new_len > len { in resize_with()
2047 self.extend_with(new_len - len, ExtendFunc(f)); in resize_with()
2049 self.truncate(new_len); in resize_with()
2242 pub fn resize(&mut self, new_len: usize, value: T) { in resize()
2245 if new_len > len { in resize()
2246 self.extend_with(new_len - len, ExtendElement(value)) in resize()
2248 self.truncate(new_len); in resize()
2340 let (new_len, new_cap) = if mem::size_of::<T>() == 0 { in into_flattened()
2356 unsafe { Vec::<T, A>::from_raw_parts_in(ptr.cast(), new_len, new_cap, alloc) } in into_flattened()