Skip to main content

Module parse

Module parse 

Source
Expand description

Module for parsing code. The main enum is Parse.

Structs§

Attribute
An attribute for the given struct, enum, field, etc
ConstGeneric
a const generic parameter, e.g. struct Foo<const N: usize> { .. }
EnumBody
The body of an enum
EnumVariant
A variant of an enum
GenericConstraints
Constraints on generic types.
Generics
A generic parameter for a struct or enum.
Lifetime
a lifetime generic parameter, e.g. struct Foo<'a> { ... }
SimpleGeneric
a simple generic parameter, e.g. struct Foo<F> { .. }
StructBody
The body of a struct
UnnamedField
An unnamed field

Enums§

AttributeLocation
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
IdentOrIndex
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§

AttributeAccess
Bring useful methods to access attributes of an element.
FromAttribute
Helper trait for AttributeAccess methods.