Skip to content

Commit

Permalink
guarantee the memory layout of Cell
Browse files Browse the repository at this point in the history
  • Loading branch information
madsmtm committed Jan 15, 2023
1 parent ae4d89d commit f259a8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions library/core/src/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,10 @@ pub use once::OnceCell;

/// A mutable memory location.
///
/// # Memory layout
///
/// `Cell<T>` shares the same memory layout and caveats as `UnsafeCell<T>`.
///
/// # Examples
///
/// In this example, you can see that `Cell<T>` enables mutation inside an
Expand Down

0 comments on commit f259a8a

Please sign in to comment.