Enum devise::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 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>.
This type is available if Syn is built with the "derive" or
"full" feature.
Tuple Fields of Type
0: TypeParamLifetime(LifetimeDef)A lifetime definition: 'a: 'b + 'c + 'd.
This type is available if Syn is built with the "derive" or
"full" feature.
Tuple Fields of Lifetime
0: LifetimeDefConst(ConstParam)A const generic parameter: const LENGTH: usize.
This type is available if Syn is built with the "derive" or
"full" feature.
Tuple Fields of Const
0: ConstParamTrait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
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
Returns a Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty. Read more