Skip to content

Commit

Permalink
Document Pin memory layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-Bertholet committed May 18, 2023
1 parent 77fb0cd commit f16acbe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/core/src/pin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f16acbe

Please sign in to comment.