File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2727//!
2828//! ## `Cell<T>`
2929//!
30- //! [`Cell<T>`] implements interior mutability by moving values in and out of the cell. That is, an
31- //! `&mut T` to the inner value can never be obtained, and the value itself cannot be directly
32- //! obtained without replacing it with something else. Both of these rules ensure that there is
33- //! never more than one reference pointing to the inner value. This type provides the following
30+ //! [`Cell<T>`] implements interior mutability by moving values in and out of the cell. That is, a
31+ //! `&T` to the inner value can never be obtained, and the value itself cannot be directly
32+ //! obtained without replacing it with something else. This type provides the following
3433//! methods:
3534//!
3635//! - For types that implement [`Copy`], the [`get`](Cell::get) method retrieves the current
You can’t perform that action at this time.
0 commit comments