read-cell
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.
License
Licensed under either of
- Apache License, Version 2.0, (license/APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (license/MIT or http://opensource.org/licenses/MIT)
at your option.
Contributions
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.