darling_core

Module derive

source
Expand description

Functions to derive darling’s traits from well-formed input, without directly depending on proc_macro.

Macros§

  • Run an expression which returns a darling::Result, then either return the tokenized representation of the Ok value, or the tokens of the compiler errors in the Err case.

Functions§

  • Create tokens for a darling::FromAttributes impl from a DeriveInput. If the input cannot produce a valid impl, the returned tokens will contain compile errors instead.
  • Create tokens for a darling::FromDeriveInput impl from a DeriveInput. If the input cannot produce a valid impl, the returned tokens will contain compile errors instead.
  • Create tokens for a darling::FromField impl from a DeriveInput. If the input cannot produce a valid impl, the returned tokens will contain compile errors instead.
  • Create tokens for a darling::FromMeta impl from a DeriveInput. If the input cannot produce a valid impl, the returned tokens will contain compile errors instead.
  • Create tokens for a darling::FromTypeParam impl from a DeriveInput. If the input cannot produce a valid impl, the returned tokens will contain compile errors instead.
  • Create tokens for a darling::FromVariant impl from a DeriveInput. If the input cannot produce a valid impl, the returned tokens will contain compile errors instead.