Module cairo_lang_semantic::expr::pattern
source · Structs
- A pattern that destructures a specific variant of an enum to its inner value.
- A pattern that destructures a struct to its fields.
- A pattern that destructures a tuple to its fields.
- A pattern that binds the matched value to a variable.
Enums
- Semantic representation of a Pattern. A pattern is a way to “destructure” values. A pattern may introduce new variables that are bound to inner values of a specific value. For example, a tuple pattern destructures a tuple and may result in new variables for an elements of that tuple. This is used both in let statements and match statements.