Lines Matching defs:usize

131     pub fn with_capacity_in(capacity: usize, alloc: A) -> Self {  in with_capacity_in()
138 pub fn try_with_capacity_in(capacity: usize, alloc: A) -> Result<Self, TryReserveError> { in try_with_capacity_in()
146 pub fn with_capacity_zeroed_in(capacity: usize, alloc: A) -> Self { in with_capacity_zeroed_in()
177 fn allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Self { in allocate_in()
212 … fn try_allocate_in(capacity: usize, init: AllocInit, alloc: A) -> Result<Self, TryReserveError> { in try_allocate_in()
247 pub unsafe fn from_raw_parts_in(ptr: *mut T, capacity: usize, alloc: A) -> Self { in from_raw_parts_in()
263 pub fn capacity(&self) -> usize { in capacity()
311 pub fn reserve(&mut self, len: usize, additional: usize) { in reserve()
319 len: usize, in reserve()
320 additional: usize, in reserve()
334 pub fn reserve_for_push(&mut self, len: usize) { in reserve_for_push()
339 pub fn try_reserve(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in try_reserve()
371 pub fn reserve_exact(&mut self, len: usize, additional: usize) { in reserve_exact()
378 len: usize, in try_reserve_exact()
379 additional: usize, in try_reserve_exact()
395 pub fn shrink_to_fit(&mut self, cap: usize) { in shrink_to_fit()
403 fn needs_to_grow(&self, len: usize, additional: usize) -> bool { in needs_to_grow()
407 fn set_ptr_and_cap(&mut self, ptr: NonNull<[u8]>, cap: usize) { in set_ptr_and_cap()
422 fn grow_amortized(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in grow_amortized()
451 fn grow_exact(&mut self, len: usize, additional: usize) -> Result<(), TryReserveError> { in grow_exact()