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