Lines Matching refs:push
6 //! Vectors have *O*(1) indexing, amortized *O*(1) push (to the end) and
29 //! You can [`push`] values onto the end of a vector (which will grow the vector
35 //! v.push(3);
54 //! [`push`]: Vec::push
156 /// vec.push(1);
157 /// vec.push(2);
180 /// vec1.push(4);
207 /// stack.push(1);
208 /// stack.push(2);
209 /// stack.push(3);
348 /// [`push`] and [`insert`] will never (re)allocate if the reported capacity is
349 /// sufficient. [`push`] and [`insert`] *will* (re)allocate if
358 /// strategy is used will of course guarantee *O*(1) amortized [`push`].
391 /// [`push`]: Vec::push
462 /// vec.push(i);
468 /// vec.push(11);
516 /// vec.push(i);
522 /// vec.push(11);
709 /// vec.push(i);
715 /// vec.push(11);
767 /// vec.push(i);
773 /// vec.push(11);
847 /// v.push(1);
848 /// v.push(2);
849 /// v.push(3);
965 /// v.push(-1);
966 /// v.push(0);
967 /// v.push(1);
998 /// vec.push(42);
1937 /// vec.push(3);
1943 pub fn push(&mut self, value: T) {
1982 /// Unlike [`push`] this method will not reallocate when there's insufficient capacity.
1985 /// [`push`]: Vec::push
2214 /// v.push(1);
2288 /// This method uses a closure to create new values on every push. If
2405 /// you can use [`push`], [`extend`], [`extend_from_slice`],
2409 /// [`push`]: Vec::push
3020 self.push(item);
3039 // self.push(item);
3065 // self.push(item);
3273 self.push(item);