darling

Trait FromGenericParam

Source
pub trait FromGenericParam: Sized {
    // Required method
    fn from_generic_param(param: &GenericParam) -> Result<Self, Error>;
}
Expand description

Creates an instance by parsing a specific syn::GenericParam. This can be a type param, a lifetime, or a const param.

Required Methods§

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 FromGenericParam for GenericParam

Source§

impl FromGenericParam for ()

Implementors§