Lines Matching defs:splice
7325 v.splice(2..4, a.iter().cloned());
7327 v.splice(1..3, Some(20));
7335 let t1: Vec<_> = v.splice(2..=3, a.iter().cloned()).collect();
7338 let t2: Vec<_> = v.splice(1..=2, Some(20)).collect();
7348 v.splice(5..6, a.iter().cloned());
7356 v.splice(5..=5, a.iter().cloned());
7363 let t: Vec<_> = vec.splice(1..2, vec2.iter().cloned()).collect();
7371 let t: Vec<_> = vec.splice(.., None).collect();
7380 std::mem::forget(v.splice(2..4, a.iter().cloned()));
8262 next_then_drop(v.splice(5.., vec![1, 2, 3, 4, 5])); // empty tail after range
8264 next_then_drop(v.splice(5..8, vec![1])); // replacement is smaller than original range
8266 next_then_drop(v.splice(5..6, vec![1; 10].into_iter().filter(|_| true))); // lower bound not exact
17782 #[stable(feature = "splice", since = "1.27.0")]
17810 unsafe { self.as_mut_vec() }.splice((start, end), replace_with.bytes());
46888 pub use self::splice::Splice;
46890 mod splice;
49350 /// let u: Vec<_> = v.splice(..2, new.iter().cloned()).collect();
49356 pub fn splice<R, I>(&mut self, range: R, replace_with: I) -> Splice<'_, I::IntoIter, A>
49963 /// This struct is created by [`Vec::splice()`].
49971 /// let iter: std::vec::Splice<_> = v.splice(1.., new.iter().cloned());