Skip to content

Commit f16acbe

Browse files
Document Pin memory layout
1 parent 77fb0cd commit f16acbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/pin.rs

+2
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,8 @@ use crate::ops::{CoerceUnsized, Deref, DerefMut, DispatchFromDyn, Receiver};
393393
/// value in place, preventing the value referenced by that pointer from being moved
394394
/// unless it implements [`Unpin`].
395395
///
396+
/// `Pin<P>` is guaranteed to have the same memory layout and ABI as `P`.
397+
///
396398
/// *See the [`pin` module] documentation for an explanation of pinning.*
397399
///
398400
/// [`pin` module]: self

0 commit comments

Comments
 (0)