We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Rc practice problems in Rust
Difficulty:
Category:
Tag:
Showing 12 of 12
| Status | Title | Difficulty | Category | Tags |
|---|---|---|---|---|
| Bake-off: the same tree, an arena and an `Rc` graph | Hard | End-to-End |
|
|
| Build Rc<T> and RefCell<T> from scratch | Hard | End-to-End |
|
|
| Dispatch through Rc: Rc<dyn Trait> and shared behaviour | Medium | Primitives |
|
|
| Inside `Rc`: `strong_count`, `ptr_eq`, `get_mut`, `try_unwrap` | Medium | Primitives |
|
|
| RAII: build your own guard | Medium | Primitives |
|
|
| `Rc::make_mut`: copy-on-write shared data | Hard | Primitives |
|
|
| `Rc::new_cyclic`: self-reference in one step | Hard | Primitives |
|
|
| `Rc<RefCell<T>>`: the workhorse, and when it is a smell | Hard | End-to-End |
|
|
| `Rc<str>`: interning without double indirection | Medium | Primitives |
|
|
| `Rc<T>`: shared ownership by reference counting | Medium | Primitives |
|
|
| Reference cycles leak memory | Hard | Primitives |
|
|
| `Weak<T>`: non-owning references that break cycles | Hard | Primitives |
|