darling

Trait 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>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§