Trait darling::FromGenerics

source ·
pub trait FromGenerics: Sized {
    // Required method
    fn from_generics(generics: &Generics) -> Result<Self, Error>;
}
Expand description

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

Required Methods§

source

fn from_generics(generics: &Generics) -> Result<Self, Error>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromGenerics for ()

source§

impl FromGenerics for Generics

source§

impl<T> FromGenerics for Result<T, Error>where T: FromGenerics,

Implementors§