You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The range of values for a `char` type are precisely those ranges containing all Unicode Scalar Values: `'\u{0000}'..='\u{D7FF}'` and `'\u{E000}'..='\u{10FFFF}'`.
649
649
650
650
r[patterns.range.constraint-slice]
651
-
_RangeFromPattern_ cannot be used as a top-level pattern for subpatterns in [slice patterns](#slice-patterns).
651
+
[RangeFromPattern] cannot be used as a top-level pattern for subpatterns in [slice patterns](#slice-patterns).
652
652
For example, the pattern `[1.., _]` is not a valid pattern.
A struct pattern used to match a union must specify exactly one field (see [Pattern matching on unions]).
786
786
787
787
r[patterns.struct.binding-shorthand]
788
-
The `ref` and/or `mut`_IDENTIFIER_ syntax matches any value and binds it to a variable with the same name as the given field.
788
+
The `ref` and/or `mut`[IDENTIFIER] syntax matches any value and binds it to a variable with the same name as the given field.
789
789
790
790
```rust
791
791
# structStruct {
@@ -799,7 +799,7 @@ let Struct{a: x, b: y, c: z} = struct_value; // destructure all fields
799
799
```
800
800
801
801
r[patterns.struct.refutable]
802
-
A struct pattern is refutable if the _PathInExpression_ resolves to a constructor of an enum with more than one variant, or one of its subpatterns is refutable.
802
+
A struct pattern is refutable if the [PathInExpression] resolves to a constructor of an enum with more than one variant, or one of its subpatterns is refutable.
803
803
804
804
r[patterns.tuple-struct]
805
805
## Tuple struct patterns
@@ -816,7 +816,7 @@ Tuple struct patterns match tuple struct and enum values that match all criteria
816
816
They are also used to [destructure](#destructuring) a tuple struct or enum value.
817
817
818
818
r[patterns.tuple-struct.refutable]
819
-
A tuple struct pattern is refutable if the _PathInExpression_ resolves to a constructor of an enum with more than one variant, or one of its subpatterns is refutable.
819
+
A tuple struct pattern is refutable if the [PathInExpression] resolves to a constructor of an enum with more than one variant, or one of its subpatterns is refutable.
820
820
821
821
r[patterns.tuple]
822
822
## Tuple patterns
@@ -985,7 +985,7 @@ r[patterns.or]
985
985
986
986
_Or-patterns_ are patterns that match on one of two or more sub-patterns (for example `A | B | C`).
987
987
They can nest arbitrarily.
988
-
Syntactically, or-patterns are allowed in any of the places where other patterns are allowed (represented by the _Pattern_ production), with the exceptions of `let`-bindings and function and closure arguments (represented by the _PatternNoTopAlt_ production).
988
+
Syntactically, or-patterns are allowed in any of the places where other patterns are allowed (represented by the [Pattern] production), with the exceptions of `let`-bindings and function and closure arguments (represented by the [PatternNoTopAlt] production).
0 commit comments