Searched refs:into_box (Results 1 – 3 of 3) sorted by relevance
631 unsafe { RawVec::with_capacity(len).into_box(len) } in new_uninit_slice()656 unsafe { RawVec::with_capacity_zeroed(len).into_box(len) } in new_zeroed_slice()688 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()753 unsafe { RawVec::with_capacity_in(len, alloc).into_box(len) } in new_uninit_slice_in()781 unsafe { RawVec::with_capacity_zeroed_in(len, alloc).into_box(len) } in new_zeroed_slice_in()1484 buf.into_box(slice.len()).assume_init() in from_slice()
162 pub unsafe fn into_box(self, len: usize) -> Box<[MaybeUninit<T>], A> { in into_box() method
1223 buf.into_box(len).assume_init() in into_boxed_slice()