Skip to content

Rc practice problems in Rust

Difficulty:
Category & tags Filters active
Category:
Tag:

Showing 12 of 12

Title Difficulty
Build Rc<T> and RefCell<T> from scratch Hard
Build tree paths with an arena and Rc Hard
Dispatch through Rc: Rc<dyn Trait> and shared behaviour Medium
RAII: build your own guard Medium
Rc::make_mut: copy-on-write shared data Hard
Rc::new_cyclic: self-reference in one step Hard
Rc<RefCell<T>>: shared inboxes and an arena alternative Hard
Rc<str>: sharing interned strings Medium
Rc<T>: shared ownership by reference counting Medium
Reference cycles leak memory Hard
Trace shared ownership with Rc Medium
Weak<T>: non-owning references that break cycles Hard