Lines Matching refs:Box
6 use alloc::boxed::Box;
19 fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>>, AllocError>; in new_uninit()
37 fn drop_contents(this: Self) -> Box<MaybeUninit<T>>; in drop_contents()
40 impl<T> BoxExt<T> for Box<T> { implementation
49 fn new_uninit(_flags: Flags) -> Result<Box<MaybeUninit<T>>, AllocError> { in new_uninit()
50 Ok(Box::new_uninit()) in new_uninit()
54 fn new_uninit(flags: Flags) -> Result<Box<MaybeUninit<T>>, AllocError> { in new_uninit()
74 Ok(unsafe { Box::from_raw(ptr) }) in new_uninit()
77 fn drop_contents(this: Self) -> Box<MaybeUninit<T>> { in drop_contents()
78 let ptr = Box::into_raw(this); in drop_contents()
87 unsafe { Box::from_raw(ptr) } in drop_contents()