Skip to main content

Module ast

Module ast 

Source
Expand description

Utility types for working with the AST.

Structs§

Fields
Equivalent to syn::Fields, but replaces the AST element with a generic.
Generics
A mirror of the syn::Generics type which can contain arbitrary representations of params and where clauses.
MetaNameValueInvalidExpr
Represents a name-value attribute like foo = ... where we failed to parse the RHS (...) as a syn::Expr.

Enums§

Data
A struct or enum body.
GenericParam
A mirror of syn::GenericParam which is generic over all its contents.
NestedMeta
Style

Traits§

GenericParamExt
Extension trait for GenericParam to support getting values by variant.