Struct devise::syn::TypeParam [−][src]
pub struct TypeParam {
pub attrs: Vec<Attribute, Global>,
pub ident: Ident,
pub colon_token: Option<Colon>,
pub bounds: Punctuated<TypeParamBound, Add>,
pub eq_token: Option<Eq>,
pub default: Option<Type>,
}
Expand description
A generic type parameter: T: Into<String>
.
This type is available if Syn is built with the "derive"
or
"full"
feature.
Fields
attrs: Vec<Attribute, Global>
ident: Ident
colon_token: Option<Colon>
bounds: Punctuated<TypeParamBound, Add>
eq_token: Option<Eq>
default: Option<Type>
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for TypeParam
impl UnwindSafe for TypeParam
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