Skip to content

Interior Mutability practice problems in Rust

Difficulty:
Category & tags Filters active
Category:
Tag:

Showing 8 of 8

Title Difficulty
Build Rc<T> and RefCell<T> from scratch Hard
Cell<T>: mutation by moving values in and out Medium
OnceCell: write-once interior mutability Medium
RefCell<T>: borrowing checked at runtime Medium
Share a log with RefCell and report borrow conflicts Medium
Sync: T is Sync exactly when &T is Send Medium
UnsafeCell: the only legal path to interior mutability Medium
When RefCell panics: re-entrancy and borrows held too long Hard