Skip to content

Glossary: Rust Basics

match

A construct that compares a value against a list of patterns and runs the code for the first one that fits. It is also an expression and must be exhaustive.

Where the book teaches it

Related terms

ArmPatternExhaustiveEnum