Description
qcell is a Rust crate that provides statically checked alternatives to RefCell and RwLock. Instead of panicking at runtime, as RefCell does when borrows conflict, the cell types cause a compile-time error, so mistakes are caught when the code is built. The crate also offers a coarser-grained alternative to RwLock, where one owner object guards a group of cells, trading fine-grained locks for a single lock on the owner. It is a Rust library, so you add it as a dependency and use its types in your own code. The crate documentation describes each cell type and how to use them. The project is dual-licensed under the Apache License 2.0 or the MIT license, at your option, and contributions are made under the same terms. The GitHub README points to the crate documentation rather than including usage examples.…
Highlights
- Compile-time checks instead of runtime panics
- Owner-based locking as an alternative to RwLock
- Rust crate with documentation
- Dual licensed Apache-2.0 or MIT
Ratings & Reviews
No ratings yet
Be the first to rate Qcell.
People also visit
Qcell FAQ
What is qcell?
A Rust crate with cell types that are statically checked, offered as alternatives to RefCell and RwLock.
How is it different from RefCell?
RefCell panics at runtime when borrows conflict. The cells in qcell give compilation errors instead.
Is it free?
Yes. You can use it under either the Apache License 2.0 or the MIT license.
Where is the documentation?
In the crate documentation, which the README links to.
What are the best Qcell alternatives?
Popular alternatives to Qcell include Broccoli, C2rust and CXX QT. See all Qcell alternatives








