Skip to content

Match practice problems in Rust

Difficulty:
Category & tags Filters active
Category:
Tag:

Showing 11 of 11

Title Difficulty
Binding values with @ and or-patterns Medium
Delegate shape methods through an enum Medium
Destructuring structs and nested patterns Medium
Grade scores with match guards Medium
Literal, range and or-patterns Easy
match and exhaustiveness: the compiler as a checklist Easy
Matching on Option Easy
Ranges: .., ..=, and range patterns Easy
Represent commands with enum variants Easy
Slice and array patterns, and rest @ .. Medium
The wildcard trap: _ arms freeze your enum against the future Medium