Function core::ptr::zero_memoryUnstable [-] [+] [src]

pub unsafe fn zero_memory<T>(dst: *mut T, count: usize)

Zeroes out count * size_of::<T> bytes of memory at dst. count may be 0.

Safety

Beyond accepting a raw pointer, this is unsafe because it will not drop the contents of dst, and may be used to create invalid instances of T.