Skip to content

Drop practice problems in Rust

Difficulty:
Category:
Tag:

Showing 21 of 21

Status Title Difficulty
Build Rc<T> and RefCell<T> from scratch Hard
Cancellation is just: stop polling and drop Medium
Capstone: an ownership-only job scheduler Hard
Capstone: audit and repair an unsound abstraction Hard
Capstone: build a thread pool Hard
Clone: explicit, deep, and never free Easy
Conditional moves and drop flags Hard
Drop order in composite structures Medium
Drop order is specified Medium
drop(x) is just a function Easy
E0509: a Drop type is an atom Hard
Futures are lazy: nothing happens until you poll Easy
Implementing a reference-counted pointer Hard
Implementing `Vec`: layout, allocation, push, pop Hard
Leaking is safe Hard
Leaking is safe, and exception safety Hard
`let _ =` versus `let _x =`: the guard that dies instantly Medium
Partial initialisation and leak-free unwinding: a `MaybeUninit` ring buffer Hard
RAII: build your own guard Medium
Reference cycles leak memory Hard
Shadowing is not moving Easy