Expand description
Provides read-only counterpart to standard Cell type.
Unlike Cell, ReadCell cannot be used to mutate inner value, just like &T,
but similar to Cell it cannot be used to get &T to the inner value.
While &Cell<T> references and &T references to the same value cannot coexist,
&ReadCell<T> reference and &Cell<T> reference to the same value can coexist.
As well as &ReadCell<T> reference and &T reference to the same value can coexist.
Structsยง
- Read
Cell - A possible mutable memory location.
It provides only non-mutating subset of
CellAPI. This allows&ReadCell<T>share value with&Cell<T>and&Talike.