darling

Trait FromTypeParam

source
pub trait FromTypeParam: Sized {
    // Required method
    fn from_type_param(type_param: &TypeParam) -> Result<Self, Error>;
}
Expand description

Creates an instance by parsing an individual type_param and its attributes.

Required Methods§

source

fn from_type_param(type_param: &TypeParam) -> Result<Self, Error>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromTypeParam for ()

source§

impl FromTypeParam for Ident

source§

impl FromTypeParam for Vec<Attribute>

source§

impl FromTypeParam for TypeParam

Implementors§