Lines Matching refs:additional
209 /// additional memory.
224 /// Increments `self.len` by `additional`.
228 /// - `additional` must be less than or equal to `self.capacity - self.len`.
229 /// - All elements within the interval [`self.len`,`self.len + additional`) must be initialized.
231 pub const unsafe fn inc_len(&mut self, additional: usize) {
233 debug_assert!(additional <= self.capacity() - self.len());
236 self.len += additional;
576 /// // SAFETY: We only wrote an additional element at the end of the `KVec`'s buffer and
657 /// Ensures that the capacity exceeds the length by at least `additional` elements.
675 pub fn reserve(&mut self, additional: usize, flags: Flags) -> Result<(), AllocError> {
679 if cap - len >= additional {
690 let new_cap = core::cmp::max(cap * 2, len.checked_add(additional).ok_or(AllocError)?);
1316 /// - Neither `Iterator::collect` nor `FromIterator::from_iter` can handle additional allocation