Searched refs:into_box (Results 1 – 3 of 3) sorted by relevance
639 unsafe { RawVec::with_capacity(len).into_box(len) } in new_uninit_slice()664 unsafe { RawVec::with_capacity_zeroed(len).into_box(len) } in new_zeroed_slice()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()765 unsafe { RawVec::with_capacity_in(len, alloc).into_box(len) } in new_uninit_slice_in()793 unsafe { RawVec::with_capacity_zeroed_in(len, alloc).into_box(len) } in new_zeroed_slice_in()1506 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
1224 buf.into_box(len).assume_init() in into_boxed_slice()