abi_stable::utils

Function take_manuallydrop

Source
pub unsafe fn take_manuallydrop<T>(slot: &mut ManuallyDrop<T>) -> T
Expand description

Takes the contents out of a ManuallyDrop<T>.

ยงSafety

After this function is called slot will become uninitialized and must not be read again.