Skip to content

Drop practice problems in Rust

Difficulty:
Category & tags Filters active
Category:
Tag:

Showing 21 of 21

Title Difficulty
Build a ring buffer with MaybeUninit Hard
Build a vector with allocation, push and pop Hard
Build Rc<T> and RefCell<T> from scratch Hard
Cancelling a future by dropping it Medium
Capstone: an ownership-only job scheduler Hard
Capstone: audit and repair an unsound abstraction Hard
Capstone: build a thread pool Hard
Conditional moves and drop flags Hard
Create, drop and run futures Easy
Drop order in composite structures Medium
Implementing a reference-counted pointer Hard
Keep a guard alive with a named binding Medium
Keep a vector valid when its drain is forgotten Hard
Move values through a pipeline without cloning Easy
Observe scope cleanup and control vector drop order Medium
Observe when destructors are skipped Hard
RAII: build your own guard Medium
Reference cycles leak memory Hard
Schedule destruction with a by-value helper Easy
Shadowing is not moving Easy
Take a payload while keeping its destructor valid Hard