Module darling_core::ast

source ·
Expand description

Utility types for working with the AST.


  • 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.


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


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