Trait darling::FromDeriveInput [−][src]
pub trait FromDeriveInput { pub fn from_derive_input(input: &DeriveInput) -> Result<Self, Error>; }
Creates an instance by parsing an entire proc-macro derive
input,
including the, identity, generics, and visibility of the type.
This trait should either be derived or manually implemented by a type
in the proc macro crate which is directly using darling
. It is unlikely
that these implementations will be reusable across crates.
Required methods
pub fn from_derive_input(input: &DeriveInput) -> Result<Self, Error>
[src]
Create an instance from syn::DeriveInput
, or return an error.
Implementations on Foreign Types
impl FromDeriveInput for ()
[src]
impl FromDeriveInput for ()
[src]pub fn from_derive_input(&DeriveInput) -> Result<(), Error>
[src]
impl FromDeriveInput for DeriveInput
[src]
impl FromDeriveInput for DeriveInput
[src]pub fn from_derive_input(input: &DeriveInput) -> Result<DeriveInput, Error>
[src]
Implementors
impl FromDeriveInput for Ignored
[src]
impl FromDeriveInput for Ignored
[src]pub fn from_derive_input(&DeriveInput) -> Result<Ignored, Error>
[src]
impl<T> FromDeriveInput for SpannedValue<T> where
T: FromDeriveInput,
[src]
impl<T> FromDeriveInput for SpannedValue<T> where
T: FromDeriveInput,
[src]pub fn from_derive_input(value: &DeriveInput) -> Result<SpannedValue<T>, Error>
[src]
impl<T> FromDeriveInput for WithOriginal<T, DeriveInput> where
T: FromDeriveInput,
[src]
impl<T> FromDeriveInput for WithOriginal<T, DeriveInput> where
T: FromDeriveInput,
[src]pub fn from_derive_input(
value: &DeriveInput
) -> Result<WithOriginal<T, DeriveInput>, Error>
[src]
value: &DeriveInput
) -> Result<WithOriginal<T, DeriveInput>, Error>