Glossary: Data Structures and Algorithms in Rust
Pattern matching
Also written: match, if let, while let
Taking a value apart by its shape: match chooses an arm, if let runs a block when the value fits a pattern such as Some(x), and while let loops until it stops fitting.