core::marker::Unpin - Rust
Description: API documentation for the Rust `Unpin` trait in crate `core`.
Keywords: rust, rustlang, rust-lang, Unpin

# Trait core::marker::Unpin[−][src]

    pub auto trait Unpin { }

🔬 This is a nightly-only experimental API. (`pin` #49150)

Types which can be moved out of a `PinMut`.

The `Unpin` trait is used to control the behavior of the `PinMut` type. If a type implements `Unpin`, it is safe to move a value of that type out of the `PinMut` pointer.

This trait is automatically implemented for almost every type.

## Implementors

- `impl<'a, T: ?Sized> Unpin for PinMut<'a, T>` | [src]

- `impl !Unpin for Pinned` | [src]

- `impl<'a, T: ?Sized + 'a> Unpin for &'a T` | [src]

- `impl<'a, T: ?Sized + 'a> Unpin for &'a mut T` | [src]

- `impl Unpin for Waker` | [src]

- `impl Unpin for LocalWaker` | [src]

## Auto implementors

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## 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` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g. `str,u8` or `String,struct:Vec,test`)