Enum syn::GenericParam [−][src]
pub enum GenericParam {
    Type(TypeParam),
    Lifetime(LifetimeDef),
    Const(ConstParam),
}A generic type parameter, lifetime, or const generic: T: Into<String>,
'a: 'b, const LEN: usize.
This type is available only if Syn is built with the "derive" or "full"
feature.
Syntax tree enum
This type is a syntax tree enum.
Variants
Type(TypeParam)A generic type parameter: T: Into<String>.
Lifetime(LifetimeDef)A lifetime definition: 'a: 'b + 'c + 'd.
Const(ConstParam)A const generic parameter: const LENGTH: usize.
Trait Implementations
impl Clone for GenericParam[src]
impl Clone for GenericParam[src]fn clone(&self) -> Self[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl From<ConstParam> for GenericParam[src]
impl From<ConstParam> for GenericParam[src]fn from(e: ConstParam) -> GenericParam[src]
impl From<LifetimeDef> for GenericParam[src]
impl From<LifetimeDef> for GenericParam[src]fn from(e: LifetimeDef) -> GenericParam[src]
impl From<TypeParam> for GenericParam[src]
impl From<TypeParam> for GenericParam[src]fn from(e: TypeParam) -> GenericParam[src]
impl Hash for GenericParam[src]
impl Hash for GenericParam[src]impl Parse for GenericParam[src]
impl Parse for GenericParam[src]fn parse(input: ParseStream<'_>) -> Result<Self>[src]
impl PartialEq<GenericParam> for GenericParam[src]
impl PartialEq<GenericParam> for GenericParam[src]impl ToTokens for GenericParam[src]
impl ToTokens for GenericParam[src]