Module darling::ast

source ·
Expand description

Utility types for working with the AST.

Structs

  • Equivalent to syn::Fields, but replaces the AST element with a generic.
  • A mirror of the syn::Generics type which can contain arbitrary representations of params and where clauses.

Enums

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

Traits

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