Expand description
Functions to derive darling
’s traits from well-formed input, without directly depending
on proc_macro
.
Macros§
- emit_
impl_ 🔒or_ error - Run an expression which returns a
darling::Result
, then either return the tokenized representation of theOk
value, or the tokens of the compiler errors in theErr
case.
Functions§
- from_
attributes - Create tokens for a
darling::FromAttributes
impl from aDeriveInput
. If the input cannot produce a valid impl, the returned tokens will contain compile errors instead. - from_
derive_ input - Create tokens for a
darling::FromDeriveInput
impl from aDeriveInput
. If the input cannot produce a valid impl, the returned tokens will contain compile errors instead. - from_
field - Create tokens for a
darling::FromField
impl from aDeriveInput
. If the input cannot produce a valid impl, the returned tokens will contain compile errors instead. - from_
meta - Create tokens for a
darling::FromMeta
impl from aDeriveInput
. If the input cannot produce a valid impl, the returned tokens will contain compile errors instead. - from_
type_ param - Create tokens for a
darling::FromTypeParam
impl from aDeriveInput
. If the input cannot produce a valid impl, the returned tokens will contain compile errors instead. - from_
variant - Create tokens for a
darling::FromVariant
impl from aDeriveInput
. If the input cannot produce a valid impl, the returned tokens will contain compile errors instead.