Is My Highly Unsafe Code Correct? In Place Mapping a Vector

An ordinary safe assignment to *some_mutable_reference must drop the existing value or it would be a memory leak. So, pointers work the same way.

1 Like