Skip to main content

alloc_emplace

Function alloc_emplace 

Source
pub unsafe fn alloc_emplace<Init: EmplaceInitializer>(
    init: Init,
) -> Result<NonNull<Init::Output>, Init>
Expand description

Allocate memory for value by std::alloc::alloc and emplace in it.