Lines Matching defs:insert
348 /// [`push`] and [`insert`] will never (re)allocate if the reported capacity is
349 /// sufficient. [`push`] and [`insert`] *will* (re)allocate if
392 /// [`insert`]: Vec::insert
1547 /// vec.insert(1, 4);
1549 /// vec.insert(4, 5);
1554 pub fn insert(&mut self, index: usize, element: T) {
2406 /// [`extend_from_within`], [`insert`], [`append`], [`resize`] or
2413 /// [`insert`]: Vec::insert