Module secmem_alloc::boxed
source · [−]Expand description
Module providing a simple replacement for std::boxed::Box
with allocator
support.
Motivation
- The allocator api of
std::boxed::Box
is still unstable (at the time of writing). TheBox
provided by this module can be used on stable with allocators. - Issue #78459 prevents
the use of non-zero sized allocators with
std::boxed::Box
even on nightly.
Structs
A replacement for std::boxed::Box
that works with custom allocators.