reth::primitives::revm_primitives::alloy_primitives::utils

Function box_try_new_uninit

pub fn box_try_new_uninit<T>() -> Result<Box<MaybeUninit<T>>, TryReserveError>
Expand description

Constructs a new box with uninitialized contents on the heap, returning an error if the allocation fails.

Stable version of Box::try_new_uninit.