read-cell

crates docs actions MIT/Apache loc

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

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.