Trait darling_core::FromGenericParam

source ·
pub trait FromGenericParam: Sized {
    // Required method
    fn from_generic_param(param: &GenericParam) -> Result<Self>;
}
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§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromGenericParam for GenericParam

source§

impl FromGenericParam for ()

Implementors§