Function core::ptr::read_and_drop [] [src]

pub unsafe fn read_and_drop<T>(dest: *mut T) -> T
Unstable (filling_drop #5016)

: may play a larger role in std::ptr future extensions

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