mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-04-02 20:49:20 +00:00
Match
Rust provides pattern matching via the match keyword, which can be used like a C switch. The first matching arm is evaluated and all possible values must be covered.