Lines Matching defs:usize
132 pub fn with_capacity_in(capacity: usize, alloc: A) -> Self { in with_capacity_in()
140 pub fn with_capacity_zeroed_in(capacity: usize, alloc: A) -> Self { in with_capacity_zeroed_in()
171 fn allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Self { in allocate_in()
217 pub unsafe fn from_raw_parts_in(ptr: *mut T, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
233 pub fn capacity(&self) -> usize { in capacity()
276 pub fn reserve(&mut self, len: usize, additional: usize) { in reserve()
284 len: usize, in reserve()
285 additional: usize, in reserve()
299 pub fn reserve_for_push(&mut self, len: usize) { in reserve_for_push()
304 pub fn try_reserve(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in try_reserve()
336 pub fn reserve_exact(&mut self, len: usize, additional: usize) { in reserve_exact()
343 len: usize, in try_reserve_exact()
344 additional: usize, in try_reserve_exact()
360 pub fn shrink_to_fit(&mut self, cap: usize) { in shrink_to_fit()
368 fn needs_to_grow(&self, len: usize, additional: usize) -> bool { in needs_to_grow()
372 fn set_ptr_and_cap(&mut self, ptr: NonNull<[u8]>, cap: usize) { in set_ptr_and_cap()
387 fn grow_amortized(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in grow_amortized()
416 fn grow_exact(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in grow_exact()