# Function std::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.

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