Add links to <cell.rs>

`UnsafeCell` page could benefit too from having links to these most popular structs in the module.
This commit is contained in:
Sergey Kaunov 2023-04-03 09:18:14 +03:00 committed by GitHub
parent 33289132ec
commit abc61d23de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1816,7 +1816,7 @@ impl<T: ?Sized + fmt::Display> fmt::Display for RefMut<'_, T> {
/// `UnsafeCell<T>` opts-out of the immutability guarantee for `&T`: a shared reference
/// `&UnsafeCell<T>` may point to data that is being mutated. This is called "interior mutability".
///
/// All other types that allow internal mutability, such as `Cell<T>` and `RefCell<T>`, internally
/// All other types that allow internal mutability, such as [`Cell<T>`] and [`RefCell<T>`], internally
/// use `UnsafeCell` to wrap their data.
///
/// Note that only the immutability guarantee for shared references is affected by `UnsafeCell`. The