https://github.com/zakarumych/read-cell
Read-only Cell counterpart
https://github.com/zakarumych/read-cell
Last synced: 6 months ago
JSON representation
Read-only Cell counterpart
- Host: GitHub
- URL: https://github.com/zakarumych/read-cell
- Owner: zakarumych
- License: other
- Created: 2022-05-19T13:25:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-19T13:48:22.000Z (over 3 years ago)
- Last Synced: 2024-10-13T14:15:28.252Z (12 months ago)
- Language: Rust
- Size: 7.81 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: COPYING
Awesome Lists containing this project
README
# read-cell
[](https://crates.io/crates/read-cell)
[](https://docs.rs/read-cell)
[](https://github.com/zakarumych/read-cell/actions?query=workflow%3ARust)
[](COPYING)
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`] references and [`&T`] references to the same value cannot coexist,
[`&ReadCell`] reference and [`&Cell`] reference to the same value can coexist.
As well as [`&ReadCell`] reference and [`&T`] reference to the same value can coexist.[`Cell`]: https://doc.rust-lang.org/nightly/core/cell/struct.Cell.html
[`ReadCell`]: https://docs.rs/read-cell/latest/read_cell/struct.ReadCell.html
[`&Cell`]: https://doc.rust-lang.org/nightly/core/cell/struct.Cell.html
[`&ReadCell`]: https://docs.rs/read-cell/latest/read_cell/struct.ReadCell.html
[`&T`]: https://doc.rust-lang.org/nightly/core/primitive.reference.html## License
Licensed under either of
* Apache License, Version 2.0, ([license/APACHE](license/APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
* MIT license ([license/MIT](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.