Skip to content

Guards practice problems in Rust

Difficulty:
Category:
Tag:

Showing 7 of 7

Status Title Difficulty
Build `Cell<T>` and `RefCell<T>` from scratch Hard
Guard lifetimes: still holding the lock, still not meaning to Hard
`let _ =` versus `let _x =`: the guard that dies instantly Medium
Match guards, and why they don't count toward exhaustiveness Medium
RAII: build your own guard Medium
`RefCell<T>`: borrowing checked at runtime Medium
Unsound API smells: the patterns that are always wrong Medium