pub trait FromGenerics: Sized {
    // Required method
    fn from_generics(generics: &Generics) -> Result<Self>;
}
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>

Implementations on Foreign Types§

source§

impl FromGenerics for Generics

source§

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

source§

impl FromGenerics for ()

source§

fn from_generics(_generics: &Generics) -> Result<Self>

Implementors§