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.
pub unsafe fn take_manuallydrop<T>(slot: &mut ManuallyDrop<T>) -> T
Takes the contents out of a ManuallyDrop<T>
.
After this function is called slot
will become uninitialized and
must not be read again.