Crates.io | read-cell |
lib.rs | read-cell |
version | 0.1.0 |
source | src |
created_at | 2022-05-19 13:45:49.683092 |
updated_at | 2022-05-19 13:45:49.683092 |
description | Read-only Cell counterpart |
homepage | https://github.com/zakarumych/read-cell |
repository | https://github.com/zakarumych/read-cell |
max_upload_size | |
id | 589717 |
size | 18,502 |
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.
Licensed under either of
at your option.
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.