Skip to content

Glossary: Rust Basics

Arm

Also written: match arm, arms

One line of a `match`, made of a pattern, `=>`, the code to run and a comma. The first arm whose pattern fits is the one that runs.

Where the book teaches it

Related terms

match