Function core::mem::overwriteDeprecated[src]
pub unsafe fn overwrite<T>(dst: *mut T, src: T)
Unsafely overwrite a memory location with the given value without destroying the old value.
This operation is unsafe because it does not destroy the previous value
contained at the location dst. This could leak allocations or resources,
so care must be taken to previously deallocate the value at dst.