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<T> FromGenerics for Result<T, Error> where
T: FromGenerics,
[src]
impl<T> FromGenerics for Result<T, Error> where
T: FromGenerics,
[src]impl FromGenerics for Generics
[src]
impl FromGenerics for Generics
[src]Implementors
impl FromGenerics for Ignored
[src]
impl FromGenerics for Ignored
[src]impl<P> FromGenerics for darling::ast::Generics<P, WhereClause> where
P: FromGenericParam,
[src]
impl<P> FromGenerics for darling::ast::Generics<P, WhereClause> where
P: FromGenericParam,
[src]pub fn from_generics(
generics: &Generics
) -> Result<Generics<P, WhereClause>, Error>
[src]
generics: &Generics
) -> Result<Generics<P, WhereClause>, Error>
impl<T> FromGenerics for SpannedValue<T> where
T: FromGenerics,
[src]
impl<T> FromGenerics for SpannedValue<T> where
T: FromGenerics,
[src]pub fn from_generics(value: &Generics) -> Result<SpannedValue<T>, Error>
[src]
impl<T> FromGenerics for WithOriginal<T, Generics> where
T: FromGenerics,
[src]
impl<T> FromGenerics for WithOriginal<T, Generics> where
T: FromGenerics,
[src]pub fn from_generics(
value: &Generics
) -> Result<WithOriginal<T, Generics>, Error>
[src]
value: &Generics
) -> Result<WithOriginal<T, Generics>, Error>