Lines Matching refs:new_cap
807 pub fn grow(&mut self, new_cap: usize) { in grow()
808 infallible(self.try_grow(new_cap)) in grow()
814 pub fn try_grow(&mut self, new_cap: usize) -> Result<(), CollectionAllocErr> { in try_grow()
818 assert!(new_cap >= len); in try_grow()
819 if new_cap <= self.inline_size() { in try_grow()
827 } else if new_cap != cap { in try_grow()
828 let layout = layout_array::<A::Item>(new_cap)?; in try_grow()
849 self.capacity = new_cap; in try_grow()
876 let new_cap = len in try_reserve() localVariable
880 self.try_grow(new_cap) in try_reserve()
896 let new_cap = len in try_reserve_exact() localVariable
899 self.try_grow(new_cap) in try_reserve_exact()