We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Refcell practice problems in Rust
Difficulty:
Category:
Tag:
Showing 11 of 11
| Status | Title | Difficulty | Category | Tags |
|---|---|---|---|---|
| Bake-off: the same tree, an arena and an `Rc` graph | Hard | End-to-End |
|
|
| Build `Cell<T>` and `RefCell<T>` from scratch | Hard | Research |
|
|
| Build Rc<T> and RefCell<T> from scratch | Hard | End-to-End |
|
|
| Interior mutability: moving the check from compile time to run time | Medium | Primitives |
|
|
| Laziness: prove the pipeline interleaves | Easy | Primitives |
|
|
| RAII: build your own guard | Medium | Primitives |
|
|
| `Rc<RefCell<T>>`: the workhorse, and when it is a smell | Hard | End-to-End |
|
|
| `RefCell<T>`: borrowing checked at runtime | Medium | Primitives |
|
|
| Reference cycles leak memory | Hard | Primitives |
|
|
| `Weak<T>`: non-owning references that break cycles | Hard | Primitives |
|
|
| When `RefCell` panics: re-entrancy and borrows held too long | Hard | Primitives |
|