Crate darling_core

source

Re-exportsยง

  • pub use self::error::Error;
  • pub use self::error::Result;

Modulesยง

  • Utility types for working with the AST.
  • codegen ๐Ÿ”’
  • Functions to derive darlingโ€™s traits from well-formed input, without directly depending on proc_macro.
  • The darling::Error type, the multiple error Accumulator, and their internals.
  • from_attributes ๐Ÿ”’
  • from_derive_input ๐Ÿ”’
  • from_field ๐Ÿ”’
  • from_generic_param ๐Ÿ”’
  • from_generics ๐Ÿ”’
  • from_meta ๐Ÿ”’
  • from_type_param ๐Ÿ”’
  • from_variant ๐Ÿ”’
  • macros_private ๐Ÿ”’
  • macros_public ๐Ÿ”’
    Macros that should be exported from both darling_core and darling. Note that these are sym-linked into the main code, and so cannot declare on items that are exported differently in darling_core vs. darling.
  • options ๐Ÿ”’
  • Traits and types used for tracking the usage of generic parameters through a proc-macro input.
  • Utility types for attribute parsing.

Macrosยง

  • Generator for UsesLifetimes impls that unions the used lifetimes of the selected fields.
  • Generator for UsesTypeParam impls that unions the used type parameters of the selected fields.

Traitsยง

  • Create an instance by parsing a list of attributes.
  • Creates an instance by parsing an entire proc-macro derive input, including the, identity, generics, and visibility of the type.
  • Creates an instance by parsing an individual field and its attributes.
  • Creates an instance by parsing a specific syn::GenericParam. This can be a type param, a lifetime, or a const param.
  • Creates an instance by parsing an entire generics declaration, including the where clause.
  • Create an instance from an item in an attribute declaration.
  • Creates an instance by parsing an individual type_param and its attributes.
  • Creates an instance from a specified syn::Variant.