Skip to content

Option practice problems in Rust

Difficulty:
Category:
Tag:

Showing 16 of 16

Status Title Difficulty
Borrowing through Option Medium
checked, wrapping, saturating, overflowing Medium
Converting between Option and Result Medium
E0509: a Drop type is an atom Hard
Eager vs lazy defaults Easy
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
Slices &[T]: the shape that unifies arrays and Vec Medium
The Option combinator vocabulary Easy
Type sizes, enum layout and niche optimisation Medium