explaining DefKind::Field
This commit is contained in:
parent
4563f70c3b
commit
889e5719c6
1 changed files with 3 additions and 0 deletions
|
@ -113,6 +113,9 @@ pub enum DefKind {
|
||||||
InlineConst,
|
InlineConst,
|
||||||
/// Opaque type, aka `impl Trait`.
|
/// Opaque type, aka `impl Trait`.
|
||||||
OpaqueTy,
|
OpaqueTy,
|
||||||
|
/// A field in a struct, enum or union. e.g.
|
||||||
|
/// - `bar` in `struct Foo { bar: u8 }`
|
||||||
|
/// - `Foo::Bar::0` in `enum Foo { Bar(u8) }`
|
||||||
Field,
|
Field,
|
||||||
/// Lifetime parameter: the `'a` in `struct Foo<'a> { ... }`
|
/// Lifetime parameter: the `'a` in `struct Foo<'a> { ... }`
|
||||||
LifetimeParam,
|
LifetimeParam,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue