Skip to content

Match practice problems in Rust

Difficulty:
Category:
Tag:

Showing 11 of 11

Status Title Difficulty
Binding with @, and what or-patterns demand of bindings Medium
Destructuring structs and nested patterns Medium
Enum dispatch: the third option Medium
Enums are real sum types Easy
Literal, range and or-patterns Easy
match and exhaustiveness: the compiler as a checklist Easy
Match guards, and why they don't count toward exhaustiveness Medium
Matching on Option Easy
Ranges: .., ..=, and range patterns Easy
Slice and array patterns, and rest @ .. Medium
The wildcard trap: `_` arms freeze your enum against the future Medium