We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
hir::Impl
hir::ImplItem
1 parent e1ac0fa commit 2185d3fCopy full SHA for 2185d3f
compiler/rustc_hir/src/hir.rs
@@ -2345,7 +2345,8 @@ impl ImplItemId {
2345
}
2346
2347
2348
-/// Represents anything within an `impl` block.
+/// Represents an associated item within an impl block.
2349
+/// Refer to [`Impl`] for an impl block declaration.
2350
#[derive(Debug, Clone, Copy, HashStable_Generic)]
2351
pub struct ImplItem<'hir> {
2352
pub ident: Ident,
@@ -3327,6 +3328,9 @@ pub enum ItemKind<'hir> {
3327
3328
Impl(&'hir Impl<'hir>),
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.
3334
3335
pub struct Impl<'hir> {
3336
pub safety: Safety,
0 commit comments