Function core::ptr::drop_in_place1.8.0[][src]

#[lang = "drop_in_place"]
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T)

Executes the destructor (if any) of the pointed-to value.

This has two use cases:

Safety

This has all the same safety problems as ptr::read with respect to invalid pointers, types, and double drops.