pub struct Cell<T>where
T: ?Sized,{ /* private fields */ }Expand description
A mutable memory location.
§Memory layout
Cell<T> has the same memory layout and caveats as
UnsafeCell<T>. In particular, this means that
Cell<T> has the same in-memory representation as its inner type T.
§Examples
In this example, you can see that Cell<T> enables mutation inside an
immutable struct. I