# 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).

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize`)