[−][src]Function safebox::memzero
pub unsafe fn memzero<T: ?Sized>(p: &mut T)
Set the memory behind a value to zero.
The value pointed by T will be replaced by zeroes in RAM. This is guaranteed to not be optimized away by the compiler and hardware.
This is unsafe, because T is left in some uninitialized state. It is easy to get into Undefined Behavior territory with this.