We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Interior Mutability practice problems in Rust
Difficulty:
Category:
Tag:
Showing 8 of 8
| Status | Title | Difficulty | Category | Tags |
|---|---|---|---|---|
| Build Rc<T> and RefCell<T> from scratch | Hard | End-to-End |
|
|
| `Cell<T>`: mutation by moving values in and out | Medium | Primitives |
|
|
| Interior mutability: moving the check from compile time to run time | Medium | Primitives |
|
|
| `OnceCell`: write-once interior mutability | Medium | Primitives |
|
|
| `RefCell<T>`: borrowing checked at runtime | Medium | Primitives |
|
|
| Sync: T is Sync exactly when &T is Send | Medium | Primitives |
|
|
| `UnsafeCell`: the only legal path to interior mutability | Medium | Primitives |
|
|
| When `RefCell` panics: re-entrancy and borrows held too long | Hard | Primitives |
|