Lines Matching refs:range
2099 /// Removes the specified range from the vector in bulk, returning all
2115 /// elements arbitrarily, including elements outside the range.
2125 /// // A full range clears the vector, like `clear()` does
2130 pub fn drain<R>(&mut self, range: R) -> Drain<'_, T, A>
2145 let Range { start, end } = slice::range(range, ..len);
2224 /// Returns a newly allocated vector containing the elements in the range
2605 /// Copies elements from `src` range to the end of the vector.
2632 let range = slice::range(src, ..self.len());
2633 self.reserve(range.len());
2636 // - `slice::range` guarantees that the given range is valid for indexing self
2638 self.spec_extend_from_within(range);
3148 /// Creates a splicing iterator that replaces the specified range in the vector
3150 /// `replace_with` does not need to be the same length as `range`.
3152 /// `range` is removed even if the iterator is not consumed until the end.
3161 /// * The tail (elements in the vector after `range`) is empty,
3162 /// * or `replace_with` yields fewer or equal elements than `range`’s length
3184 pub fn splice<R, I>(&mut self, range: R, replace_with: I) -> Splice<'_, I::IntoIter, A>
3189 Splice { drain: self.drain(range), replace_with: replace_with.into_iter() }