Lines Matching defs:clone
869 /// let rebuilt = Vec::from_raw_parts_in(p, len, cap, alloc.clone());
2262 Vec::with_capacity_in(self.capacity(), self.allocator().clone()),
2267 let mut other = Vec::with_capacity_in(other_len, self.allocator().clone());
2489 /// in order to be able to clone the passed value.
2524 /// in order to be able to clone the passed value.
2581 /// Tries to clone and append all elements in a slice to the `Vec`.
2703 ptr::write(ptr, value.clone());
2705 // Increment the length in every step in case clone() panics
2732 ptr::write(ptr, value.clone());
2734 // Increment the length in every step in case clone() panics
2809 .map(|(src, dst)| dst.write(src.clone()))
2871 fn clone(&self) -> Self {
2872 let alloc = self.allocator().clone();
2881 fn clone(&self) -> Self {
2882 let alloc = self.allocator().clone();
3433 /// Convert a clone-on-write slice into a vector.