Enum syn::GenericParam [−][src]
pub enum GenericParam {
Type(TypeParam),
Lifetime(LifetimeDef),
Const(ConstParam),
}
Expand description
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)
Tuple Fields
0: TypeParam
A generic type parameter: T: Into<String>
.
Lifetime(LifetimeDef)
Tuple Fields
0: LifetimeDef
A lifetime definition: 'a: 'b + 'c + 'd
.
Const(ConstParam)
Tuple Fields
0: ConstParam
A const generic parameter: const LENGTH: usize
.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for GenericParam
impl !Send for GenericParam
impl !Sync for GenericParam
impl Unpin for GenericParam
impl UnwindSafe for GenericParam
Blanket Implementations
Mutably borrows from an owned value. Read more