Home
last modified time | relevance | path

Searched refs:into_box (Results 1 – 3 of 3) sorted by relevance

/rust/alloc/
Dboxed.rs631 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()
Draw_vec.rs162 pub unsafe fn into_box(self, len: usize) -> Box<[MaybeUninit<T>], A> { in into_box() method
/rust/alloc/vec/
Dmod.rs1223 buf.into_box(len).assume_init() in into_boxed_slice()