Lines Matching refs:capacity
181 pub const fn capacity(&self) -> usize { in capacity() function
204 debug_assert!(additional <= self.capacity() - self.len()); in inc_len()
309 unsafe { slice::from_raw_parts_mut(ptr, self.capacity() - self.len) } in spare_capacity_mut()
349 if self.len() < self.capacity() { in push_within_capacity()
405 if len >= self.capacity() { in insert_within_capacity()
501 pub fn with_capacity(capacity: usize, flags: Flags) -> Result<Self, AllocError> { in with_capacity()
504 v.reserve(capacity, flags)?; in with_capacity()
550 pub unsafe fn from_raw_parts(ptr: *mut T, length: usize, capacity: usize) -> Self { in from_raw_parts()
556 unsafe { ArrayLayout::new_unchecked(capacity) } in from_raw_parts()
579 let capacity = me.capacity(); in into_raw_parts() localVariable
581 (ptr, len, capacity) in into_raw_parts()
624 let cap = self.capacity(); in reserve()