CloneIntoFn

Type Alias CloneIntoFn 

Source
pub type CloneIntoFn = for<'src, 'dst> unsafe fn(source: PtrConst<'src>, target: PtrUninit<'dst>) -> PtrMut<'dst>;
Expand description

Function to clone a value into another already-allocated value

ยงSafety

The source parameter must point to aligned, initialized memory of the correct type. The target parameter has the correct layout and alignment, but points to uninitialized memory. The function returns the same pointer wrapped in an PtrMut.