Skip to content

Option practice problems in Rust

Difficulty:
Category & tags Filters active
Category:
Tag:

Showing 16 of 16

Title Difficulty
Borrowing through Option Medium
checked, wrapping, saturating, overflowing Medium
Converting between Option and Result Medium
Eager vs lazy defaults Easy
Find the largest window sum with slices Medium
fold and try_fold: a total that refuses to overflow Medium
From, Into, TryFrom: conversions that cannot lie Medium
map, filter, filter_map: parse host:port lines Easy
Matching on Option Easy
Mutating an Option in place Medium
? on Option, and bridging to Result Medium
Reborrowing: why &mut sometimes moves and sometimes doesn't Hard
ref, ref mut, and default binding modes in edition 2024 Medium
Shrink an enum and inspect its layout Medium
Take a payload while keeping its destructor valid Hard
The Option combinator vocabulary Easy