Trait darling_core::FromTypeParam
[−]
[src]
pub trait FromTypeParam: Sized { fn from_type_param(type_param: &TypeParam) -> Result<Self>; }
Creates an instance by parsing an individual type_param and its attributes.
Required Methods
fn from_type_param(type_param: &TypeParam) -> Result<Self>
Implementations on Foreign Types
impl FromTypeParam for ()
[src]
fn from_type_param(_: &TypeParam) -> Result<Self>
[src]
impl FromTypeParam for TypeParam
[src]
fn from_type_param(type_param: &TypeParam) -> Result<Self>
[src]
impl FromTypeParam for Vec<Attribute>
[src]
fn from_type_param(type_param: &TypeParam) -> Result<Self>
[src]
impl FromTypeParam for Ident
[src]
fn from_type_param(type_param: &TypeParam) -> Result<Self>
[src]
Implementors
impl<T: FromTypeParam> FromTypeParam for GenericParam<T>
impl FromTypeParam for Ignored
impl<T: FromTypeParam> FromTypeParam for WithOriginal<T, TypeParam>