Type Alias DefaultInPlaceFn

Source
pub type DefaultInPlaceFn = for<'mem> unsafe fn(PtrUninit<'mem>) -> PtrMut<'mem>;
Expand description

Function to set a value to its default in-place

ยงSafety

The target parameter has the correct layout and alignment, but points to uninitialized memory. The function returns the same pointer wrapped in an PtrMut.