Skip to content

Patterns practice problems in Rust

Difficulty:
Category:
Tag:

Showing 10 of 10

Status Title Difficulty
Binding with @, and what or-patterns demand of bindings Medium
Destructuring structs and nested patterns Medium
`let _ =` versus `let _x =`: the guard that dies instantly Medium
Literal, range and or-patterns Easy
match and exhaustiveness: the compiler as a checklist Easy
matches! and the lints that push you toward it Easy
Match guards, and why they don't count toward exhaustiveness Medium
Ranges: .., ..=, and range patterns Easy
Refutability, and every place a pattern can appear Medium
Slice and array patterns, and rest @ .. Medium