Function std::intrinsics::init_dropped
[−]
[src]
pub unsafe extern "rust-intrinsic" fn init_dropped<T>() -> T
Unstable (
core_intrinsics
): intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library
Creates a value initialized to so that its drop flag, if any, says that it has been dropped.
init_dropped
is unsafe because it returns a datum with all
of its bytes set to the drop flag, which generally does not
correspond to a valid value.
This intrinsic is likely to be deprecated in the future when Rust moves to non-zeroing dynamic drop (and thus removes the embedded drop flags that are being established by this intrinsic).