Trait darling_core::FromGenerics

source ·
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>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromGenerics for ()

source§

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

source§

impl FromGenerics for Generics

source§

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

Implementors§