mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
Document Pin
memory layout
This commit is contained in:
parent
77fb0cd3aa
commit
f16acbeef6
@ -393,6 +393,8 @@ use crate::ops::{CoerceUnsized, Deref, DerefMut, DispatchFromDyn, Receiver};
|
||||
/// value in place, preventing the value referenced by that pointer from being moved
|
||||
/// unless it implements [`Unpin`].
|
||||
///
|
||||
/// `Pin<P>` is guaranteed to have the same memory layout and ABI as `P`.
|
||||
///
|
||||
/// *See the [`pin` module] documentation for an explanation of pinning.*
|
||||
///
|
||||
/// [`pin` module]: self
|
||||
|
Loading…
Reference in New Issue
Block a user