Home
last modified time | relevance | path

Searched refs:from_raw_parts_in (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/rust/alloc/vec/
Dmod.rs646 unsafe { Self::from_raw_parts_in(ptr, length, capacity, Global) } in from_raw_parts()
900 pub unsafe fn from_raw_parts_in(ptr: *mut T, length: usize, capacity: usize, alloc: A) -> Self { in from_raw_parts_in() method
901 unsafe { Vec { buf: RawVec::from_raw_parts_in(ptr, capacity, alloc), len: length } } in from_raw_parts_in()
2683 unsafe { Vec::<T, A>::from_raw_parts_in(ptr.cast(), new_len, new_cap, alloc) } in into_flattened()
Dinto_iter.rs410 let _ = RawVec::from_raw_parts_in(self.0.buf.as_ptr(), self.0.cap, alloc); in drop()
/Linux-v6.6/rust/alloc/
Draw_vec.rs247 pub unsafe fn from_raw_parts_in(ptr: *mut T, capacity: usize, alloc: A) -> Self { in from_raw_parts_in() method
Dslice.rs106 Vec::from_raw_parts_in(b as *mut T, len, len, alloc) in into_vec()
Dboxed.rs688 Ok(RawVec::from_raw_parts_in(ptr.as_mut_ptr() as *mut _, len, Global).into_box(len)) in try_new_uninit_slice()
720 Ok(RawVec::from_raw_parts_in(ptr.as_mut_ptr() as *mut _, len, Global).into_box(len)) in try_new_zeroed_slice()