Trait darling::FromTypeParam [−][src]
pub trait FromTypeParam { pub fn from_type_param(type_param: &TypeParam) -> Result<Self, Error>; }
Creates an instance by parsing an individual type_param and its attributes.
Required methods
pub fn from_type_param(type_param: &TypeParam) -> Result<Self, Error>
[src]
Implementations on Foreign Types
impl FromTypeParam for Ident
[src]
impl FromTypeParam for Ident
[src]impl FromTypeParam for Vec<Attribute, Global>
[src]
impl FromTypeParam for Vec<Attribute, Global>
[src]impl FromTypeParam for TypeParam
[src]
impl FromTypeParam for TypeParam
[src]Implementors
impl FromTypeParam for Ignored
[src]
impl FromTypeParam for Ignored
[src]impl<T> FromTypeParam for GenericParam<T, LifetimeDef, ConstParam> where
T: FromTypeParam,
[src]
impl<T> FromTypeParam for GenericParam<T, LifetimeDef, ConstParam> where
T: FromTypeParam,
[src]pub fn from_type_param(
type_param: &TypeParam
) -> Result<GenericParam<T, LifetimeDef, ConstParam>, Error>
[src]
type_param: &TypeParam
) -> Result<GenericParam<T, LifetimeDef, ConstParam>, Error>
impl<T> FromTypeParam for SpannedValue<T> where
T: FromTypeParam,
[src]
impl<T> FromTypeParam for SpannedValue<T> where
T: FromTypeParam,
[src]pub fn from_type_param(value: &TypeParam) -> Result<SpannedValue<T>, Error>
[src]
impl<T> FromTypeParam for WithOriginal<T, TypeParam> where
T: FromTypeParam,
[src]
impl<T> FromTypeParam for WithOriginal<T, TypeParam> where
T: FromTypeParam,
[src]pub fn from_type_param(
value: &TypeParam
) -> Result<WithOriginal<T, TypeParam>, Error>
[src]
value: &TypeParam
) -> Result<WithOriginal<T, TypeParam>, Error>