Trait darling::FromGenerics[][src]

pub trait FromGenerics {
    pub fn from_generics(generics: &Generics) -> Result<Self, Error>;
}
[]

Creates an instance by parsing an entire generics declaration, including the where clause.

Required methods

pub fn from_generics(generics: &Generics) -> Result<Self, Error>[src]

Implementations on Foreign Types

impl FromGenerics for ()[src][]

impl FromGenerics for Generics[src][]

impl<T> FromGenerics for Result<T, Error> where
    T: FromGenerics
[src][]

Implementors

impl FromGenerics for Ignored[src][+]

impl<P> FromGenerics for darling::ast::Generics<P, WhereClause> where
    P: FromGenericParam
[src][+]

impl<T> FromGenerics for SpannedValue<T> where
    T: FromGenerics
[src][+]

impl<T> FromGenerics for WithOriginal<T, Generics> where
    T: FromGenerics
[src][+]