Complex Patterns Match expressions are meant to cover advanced patterns so the following sections demonstrate some examples: enum variants structs and their fields constant variables nested match expressions matching on multiple values