Struct syn::TypeParam [−][src]
pub struct TypeParam { pub attrs: Vec<Attribute>, pub ident: Ident, pub colon_token: Option<Colon>, pub bounds: Punctuated<TypeParamBound, Add>, pub eq_token: Option<Eq>, pub default: Option<Type>, }
This is supported on crate features
full
or derive
only.A generic type parameter: T: Into<String>
.
This type is available only if Syn is built with the "derive"
or
"full"
feature.
Fields
attrs: Vec<Attribute>
ident: Ident
colon_token: Option<Colon>
bounds: Punctuated<TypeParamBound, Add>
eq_token: Option<Eq>
default: Option<Type>
Trait Implementations
impl Clone for TypeParam
[src]
impl Clone for TypeParam
[src]This is supported on crate feature
clone-impls
only.fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<TypeParam> for GenericParam
[src]
impl From<TypeParam> for GenericParam
[src]fn from(e: TypeParam) -> GenericParam
[src]
impl Parse for TypeParam
[src]
impl Parse for TypeParam
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl ToTokens for TypeParam
[src]
impl ToTokens for TypeParam
[src]This is supported on crate feature
printing
only.fn to_tokens(&self, tokens: &mut TokenStream)
[src]
pub fn to_token_stream(&self) -> TokenStream
[src]
pub fn into_token_stream(self) -> TokenStream
[src]
Auto Trait Implementations
impl RefUnwindSafe for TypeParam
impl RefUnwindSafe for TypeParam
impl UnwindSafe for TypeParam
impl UnwindSafe for TypeParam