File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 5
5
>   ;  ; _ InherentImpl_ | _ TraitImpl_
6
6
>
7
7
> _ InherentImpl_ :\
8
- >   ;  ; ` impl ` [ _ GenericsDecl _ ] [ _ Type_ ] [ _ WhereClause_ ] <sup >?</sup > ` { ` \
8
+ >   ;  ; ` impl ` [ _ Generics _ ] & nbsp ; [ _ Type_ ] & nbsp ; [ _ WhereClause_ ] <sup >?</sup > ` { ` \
9
9
>   ;  ;   ;  ; [ _ InnerAttribute_ ] <sup >\* </sup >\
10
10
>   ;  ;   ;  ; _ InherentImplItem_ <sup >\* </sup >\
11
11
>   ;  ; ` } `
16
16
>   ;  ; ( [ _ ConstantItem_ ] | _ Method_ )
17
17
>
18
18
> _ TraitImpl_ :\
19
- >   ;  ; ` unsafe ` <sup >?</sup > ` impl ` [ _ GenericsDecl _ ] ` ! ` <sup >?</sup >
19
+ >   ;  ; ` unsafe ` <sup >?</sup > ` impl ` [ _ Generics _ ] ` ! ` <sup >?</sup >
20
20
> [ _ TypePath_ ] ` for ` [ _ Type_ ] \
21
21
>   ;  ; [ _ WhereClause_ ] <sup >?</sup >\
22
22
>   ;  ; ` { ` \
@@ -193,11 +193,10 @@ attributes].
193
193
[ IDENTIFIER ] : identifiers.html
194
194
[ _BlockWithInnerAttributes_ ] : items/functions.html
195
195
[ _ConstantItem_ ] : items/constant-items.html
196
- [ _Generics_ ] : items/generics.html
197
196
[ _FunctionFront_ ] : items/functions.html
198
197
[ _FunctionParam_ ] : items/functions.html
199
198
[ _FunctionReturnType_ ] : items/functions.html
200
- [ _GenericsDecl_ ] : types .html#type-parameters
199
+ [ _Generics_ ] : items/generics .html
201
200
[ _InnerAttribute_ ] : attributes.html
202
201
[ _Lifetime_ ] : trait-bounds.html
203
202
[ _OuterAttribute_ ] : attributes.html
Original file line number Diff line number Diff line change 3
3
> ** <sup >Syntax</sup >** \
4
4
> _ Trait_ :\
5
5
>   ;  ; ` unsafe ` <sup >?</sup > ` trait ` [ IDENTIFIER]   ;
6
- > [ _ GenericsDecl _ ] <sup >?</sup >
6
+ > [ _ Generics _ ] <sup >?</sup >
7
7
> [ _ WhereClause_ ] <sup >?</sup > ` { ` \
8
8
>   ;  ;  ;  ; _ TraitItem_ <sup >\* </sup >\
9
9
>   ;  ; ` } `
@@ -145,7 +145,7 @@ The [trait implementation] must also include the `unsafe` keyword.
145
145
146
146
[ IDENTIFIER ] : identifiers.html
147
147
[ _Expression_ ] : expressions.html
148
- [ _GenericsDecl_ ] : types .html#type-parameters
148
+ [ _Generics_ ] : items/generics .html
149
149
[ _Method_ ] : items/implementations.html
150
150
[ _MethodType_ ] : items/implementations.html
151
151
[ _OuterAttribute_ ] : attributes.html
You can’t perform that action at this time.
0 commit comments