Searched refs:as_mut_ptr (Results 1 – 6 of 6) sorted by relevance
/linux-6.1.9/rust/alloc/vec/ |
D | mod.rs | 731 (me.as_mut_ptr(), me.len(), me.capacity()) in into_raw_parts() 777 let ptr = me.as_mut_ptr(); in into_raw_parts_with_alloc() 1072 let s = ptr::slice_from_raw_parts_mut(self.as_mut_ptr().add(len), remaining_len); in truncate() 1175 pub fn as_mut_ptr(&mut self) -> *mut T { in as_mut_ptr() method 1320 let base_ptr = self.as_mut_ptr(); in swap_remove() 1366 let p = self.as_mut_ptr().add(index); in insert() 1420 let ptr = self.as_mut_ptr().add(index); in remove() 1518 self.v.as_mut_ptr().add(self.processed_len - self.deleted_cnt), in retain_mut() 1541 let cur = unsafe { &mut *g.v.as_mut_ptr().add(g.processed_len) }; in retain_mut() 1559 let hole_slot = g.v.as_mut_ptr().add(g.processed_len - g.deleted_cnt); in retain_mut() [all …]
|
D | drain_filter.rs | 72 let v = slice::from_raw_parts_mut(self.vec.as_mut_ptr(), self.old_len); in next() 125 let ptr = self.drain.vec.as_mut_ptr(); in drop()
|
D | drain.rs | 122 let dst = source_vec.as_mut_ptr().add(start); in drop() 167 let vec_ptr = vec.as_mut().as_mut_ptr(); in drop()
|
/linux-6.1.9/rust/alloc/ |
D | alloc.rs | 220 ptr::copy_nonoverlapping(ptr.as_ptr(), new_ptr.as_mut_ptr(), old_size); in grow_impl() 308 ptr::copy_nonoverlapping(ptr.as_ptr(), new_ptr.as_mut_ptr(), new_size); in shrink() 323 Ok(ptr) => ptr.as_mut_ptr(), in exchange_malloc()
|
D | slice.rs | 234 s.as_ptr().copy_to_nonoverlapping(v.as_mut_ptr(), s.len()); in to_vec() 583 (buf.as_mut_ptr() as *mut T).add(buf.len()), in repeat() 604 (buf.as_mut_ptr() as *mut T).add(buf.len()), in repeat() 965 let v = v.as_mut_ptr(); in merge() 1158 buf.as_mut_ptr(), in merge_sort()
|
D | boxed.rs | 367 boxed.as_mut_ptr().write(x); in new_in() 397 boxed.as_mut_ptr().write(x); in try_new_in() 674 Ok(RawVec::from_raw_parts_in(ptr.as_mut_ptr() as *mut _, len, Global).into_box(len)) in try_new_uninit_slice() 706 Ok(RawVec::from_raw_parts_in(ptr.as_mut_ptr() as *mut _, len, Global).into_box(len)) in try_new_zeroed_slice() 1243 (**self).write_clone_into_raw(boxed.as_mut_ptr()); in clone()
|