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)
A generic type parameter: T: Into<String>
.
Tuple Fields of Type
0: TypeParam
Lifetime(LifetimeDef)
A lifetime definition: 'a: 'b + 'c + 'd
.
Tuple Fields of Lifetime
0: LifetimeDef
Const(ConstParam)
A const generic parameter: const LENGTH: usize
.
Tuple Fields of Const
0: ConstParam
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