Lines Matching full:pattern
18 /// A pattern in a local binding, function signature, match expression, or
32 /// A pattern that binds a new variable: `ref mut binding @ SUBPATTERN`.
35 /// A literal pattern: `0`.
38 /// A macro in pattern position.
41 /// A pattern that matches any one of a set of cases.
44 /// A parenthesized pattern: `(A | B)`.
47 /// A path pattern like `Color::Red`, optionally qualified with a
56 /// A range pattern: `1..=2`.
59 /// A reference pattern: `&mut var`.
62 /// The dots in a tuple or slice pattern: `[0, 1, ..]`.
65 /// A dynamically sized slice pattern: `[a, b, ref i @ .., y, z]`.
68 /// A struct or struct variant pattern: `Variant { x, y, .. }`.
71 /// A tuple pattern: `(a, b)`.
74 /// A tuple struct or tuple variant pattern: `Variant(x, y, .., z)`.
77 /// A type ascription pattern: `foo: f64`.
80 /// Tokens in pattern position not interpreted by Syn.
83 /// A pattern that matches any value: `_`.
107 /// A pattern that binds a new variable: `ref mut binding @ SUBPATTERN`.
122 /// A pattern that matches any one of a set of cases.
132 /// A parenthesized pattern: `(A | B)`.
142 /// A reference pattern: `&mut var`.
153 /// The dots in a tuple or slice pattern: `[0, 1, ..]`.
162 /// A dynamically sized slice pattern: `[a, b, ref i @ .., y, z]`.
172 /// A struct or struct variant pattern: `Variant { x, y, .. }`.
185 /// A tuple pattern: `(a, b)`.
195 /// A tuple struct or tuple variant pattern: `Variant(x, y, .., z)`.
207 /// A type ascription pattern: `foo: f64`.
218 /// A pattern that matches any value: `_`.
227 /// A single field in a struct pattern.
265 /// Parse a pattern that does _not_ involve `|` at the top level.
272 /// in the argument pattern of functions and closures. Patterns using
287 /// | ^^^^^^^^^^^^^^ help: wrap the pattern in parentheses: `(Some(_) | None)`
334 /// Parse a pattern, possibly involving `|`, but not a leading `|`.
339 /// Parse a pattern, possibly involving `|`, possibly including a
346 /// the pattern of a `match` arm, where the language permits an optional
703 // Patterns that can appear on either side of a range pattern.
776 let msg = "range pattern is not allowed unparenthesized inside slice pattern"; in pat_slice()
906 // which is a tuple pattern even without comma. in to_tokens()