Function core::mem::dropped
[−]
[src]
pub unsafe fn dropped<T>() -> T
Unstable (
filling_drop
#5016)Creates a value initialized to an unspecified series of bytes.
The byte sequence usually indicates that the value at the memory in question has been dropped. Thus, if T carries a drop flag, any associated destructor will not be run when the value falls out of scope.
Some code at one time used the zeroed
function above to
accomplish this goal.
This function is expected to be deprecated with the transition to non-zeroing drop.