We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Cell
1 parent ae4d89d commit 660d985Copy full SHA for 660d985
library/core/src/cell.rs
@@ -209,6 +209,12 @@ pub use once::OnceCell;
209
210
/// A mutable memory location.
211
///
212
+/// # Memory layout
213
+///
214
+/// `Cell<T>` has the same [memory layout and caveats as
215
+/// `UnsafeCell<T>`](UnsafeCell#memory-layout). In particular, this means that
216
+/// `Cell<T>` has the same in-memory representation as its inner type `T`.
217
218
/// # Examples
219
220
/// In this example, you can see that `Cell<T>` enables mutation inside an
0 commit comments