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>.
Lifetime(LifetimeDef)A lifetime definition: 'a: 'b + 'c + 'd.
Const(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 GenericParamimpl !Send for GenericParamimpl !Sync for GenericParamimpl Unpin for GenericParamimpl UnwindSafe for GenericParamBlanket Implementations
Mutably borrows from an owned value. Read more