Function in_place

Source
pub unsafe fn in_place<T: AsLink>(link: *mut Link)
Expand description

Reclaims memory by dropping the value in place.

This function calls ptr::drop_in_place on the linked pointer.

ยงSafety

Ensure that the correct type annotations are used when passing this function to retire. The value retired must have been of type T to be retired through in_place::<T>.