Module uninit::extension_traits
source · [−]Expand description
Extension traits to enhance external types with useful methods.
Traits
Extension trait to convert a &mut _
into a &out _
by calling
.as_out()
on it.
BoxAssumeInit
alloc
or std
Extension trait to .assume_init()
through a Box
.
BoxUninit
alloc
or std
Extension trait for uninitalized Box
allocations and
the optimized delayed-initialization pattern.
Extension trait providing a cast to the ManuallyDrop
type.
Extension trait providing tranformations between init and uninit.
VecCapacity
alloc
or std
Extension trait for Vec
, allowing a non-unsafe
API to interact
with the backing buffer / allocation.
Extension trait for Vec
, that grows the vec by a bounded amount of
bytes, obtained when reading from R
.