Searched refs:from_raw_parts_in (Results 1 – 5 of 5) sorted by relevance
/openbmc/linux/rust/alloc/vec/ |
H A D | mod.rs | 644 unsafe { Self::from_raw_parts_in(ptr, length, capacity, Global) } in from_raw_parts() 901 pub unsafe fn from_raw_parts_in(ptr: *mut T, length: usize, capacity: usize, alloc: A) -> Self { in from_raw_parts_in() method 902 unsafe { Vec { buf: RawVec::from_raw_parts_in(ptr, capacity, alloc), len: length } } in from_raw_parts_in() 2684 unsafe { Vec::<T, A>::from_raw_parts_in(ptr.cast(), new_len, new_cap, alloc) } in into_flattened()
|
H A D | into_iter.rs | 410 let _ = RawVec::from_raw_parts_in(self.0.buf.as_ptr(), self.0.cap, alloc); in drop()
|
/openbmc/linux/rust/alloc/ |
H A D | raw_vec.rs | 247 pub unsafe fn from_raw_parts_in(ptr: *mut T, capacity: usize, alloc: A) -> Self { in from_raw_parts_in() method
|
H A D | boxed.rs | 699 unsafe { Ok(RawVec::from_raw_parts_in(ptr.as_ptr(), len, Global).into_box(len)) } in try_new_uninit_slice() 733 unsafe { Ok(RawVec::from_raw_parts_in(ptr.as_ptr(), len, Global).into_box(len)) } in try_new_zeroed_slice()
|
H A D | slice.rs | 106 Vec::from_raw_parts_in(b as *mut T, len, len, alloc) in into_vec()
|