pattern
A shape a value is compared against, like 1..=9 or _.
A pattern describes the shape of a value to match and can bind names to its parts.
Examples
In a
match,3,12 | 13,0..=5and_are patterns;let (x, y) = point;uses one too.
See also
A shape a value is compared against, like 1..=9 or _.
A pattern describes the shape of a value to match and can bind names to its parts.
Examples
In a match, 3, 12 | 13, 0..=5 and _ are patterns; let (x, y) = point; uses one too.
See also