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>

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 FromTypeParam for ()

Source§

impl FromTypeParam for Vec<Attribute>

Source§

impl FromTypeParam for Ident

Source§

impl FromTypeParam for TypeParam

Implementors§