Expand description
Module for parsing code. The main enum is Parse
.
Structs
- An attribute for the given struct, enum, field, etc
- a const generic parameter, e.g.
struct Foo<const N: usize> { .. }
- The body of an enum
- A variant of an enum
- Constraints on generic types.
- A generic parameter for a struct or enum.
- a lifetime generic parameter, e.g.
struct Foo<'a> { ... }
- a simple generic parameter, e.g.
struct Foo<F> { .. }
- The body of a struct
- An unnamed field
Enums
- The location an attribute can be found at
- The body of the enum or struct
- The different field types an enum variant can have.
- A single generic argument on a type
- Reference to an enum variant’s field. Either by index or by ident.
- Parser for Enum and Struct derives.
- The visibility of a struct, enum, field, etc
Traits
- Bring useful methods to access attributes of an element.
- Helper trait for
AttributeAccess
methods.