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

pub unsafe fn read_and_drop<T>(dest: *mut T) -> T

Variant of read_and_zero that writes the specific drop-flag byte (which may be more appropriate than zero).