Trait darling::FromGenericParam [−][src]
pub trait FromGenericParam { pub fn from_generic_param(param: &GenericParam) -> Result<Self, Error>; }
Creates an instance by parsing a specific syn::GenericParam
.
This can be a type param, a lifetime, or a const param.
Required methods
pub fn from_generic_param(param: &GenericParam) -> Result<Self, Error>
[src]
Implementations on Foreign Types
impl FromGenericParam for ()
[src]
impl FromGenericParam for ()
[src]pub fn from_generic_param(_param: &GenericParam) -> Result<(), Error>
[src]
impl FromGenericParam for GenericParam
[src]
impl FromGenericParam for GenericParam
[src]pub fn from_generic_param(param: &GenericParam) -> Result<GenericParam, Error>
[src]
Implementors
impl FromGenericParam for Ignored
[src]
impl FromGenericParam for Ignored
[src]pub fn from_generic_param(&GenericParam) -> Result<Ignored, Error>
[src]
impl<T> FromGenericParam for darling::ast::GenericParam<T, LifetimeDef, ConstParam> where
T: FromTypeParam,
[src]
impl<T> FromGenericParam for darling::ast::GenericParam<T, LifetimeDef, ConstParam> where
T: FromTypeParam,
[src]pub fn from_generic_param(
param: &GenericParam
) -> Result<GenericParam<T, LifetimeDef, ConstParam>, Error>
[src]
param: &GenericParam
) -> Result<GenericParam<T, LifetimeDef, ConstParam>, Error>
impl<T> FromGenericParam for SpannedValue<T> where
T: FromGenericParam,
[src]
impl<T> FromGenericParam for SpannedValue<T> where
T: FromGenericParam,
[src]pub fn from_generic_param(
value: &GenericParam
) -> Result<SpannedValue<T>, Error>
[src]
value: &GenericParam
) -> Result<SpannedValue<T>, Error>
impl<T> FromGenericParam for WithOriginal<T, GenericParam> where
T: FromGenericParam,
[src]
impl<T> FromGenericParam for WithOriginal<T, GenericParam> where
T: FromGenericParam,
[src]pub fn from_generic_param(
value: &GenericParam
) -> Result<WithOriginal<T, GenericParam>, Error>
[src]
value: &GenericParam
) -> Result<WithOriginal<T, GenericParam>, Error>