Skip to content

Glossary: Rust in Practice

match guard

An `if` after a `match` pattern. The arm matches only if the pattern fits and the condition is also true.

Where the book teaches it