We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
UnsafeCell<T>
1 parent 56e7678 commit 302e33fCopy full SHA for 302e33f
library/core/src/cell.rs
@@ -1811,6 +1811,8 @@ impl<T: ?Sized + fmt::Display> fmt::Display for RefMut<'_, T> {
1811
///
1812
/// [`.get_mut()`]: `UnsafeCell::get_mut`
1813
1814
+/// `UnsafeCell<T>` has the same in-memory representation as its inner type `T`.
1815
+///
1816
/// # Examples
1817
1818
/// Here is an example showcasing how to soundly mutate the contents of an `UnsafeCell<_>` despite
0 commit comments