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