File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2345,7 +2345,9 @@ impl ImplItemId {
2345
2345
}
2346
2346
}
2347
2347
2348
- /// Represents anything within an `impl` block.
2348
+ /// Represents an associated item within an impl block.
2349
+ ///
2350
+ /// Refer to [`Impl`] for an impl block declaration.
2349
2351
#[ derive( Debug , Clone , Copy , HashStable_Generic ) ]
2350
2352
pub struct ImplItem < ' hir > {
2351
2353
pub ident : Ident ,
@@ -3327,6 +3329,10 @@ pub enum ItemKind<'hir> {
3327
3329
Impl ( & ' hir Impl < ' hir > ) ,
3328
3330
}
3329
3331
3332
+ /// Represents an impl block declaration.
3333
+ ///
3334
+ /// E.g., `impl $Type { .. }` or `impl $Trait for $Type { .. }`
3335
+ /// Refer to [`ImplItem`] for an associated item within an impl block.
3330
3336
#[ derive( Debug , Clone , Copy , HashStable_Generic ) ]
3331
3337
pub struct Impl < ' hir > {
3332
3338
pub safety : Safety ,
You can’t perform that action at this time.
0 commit comments