Enum syn::GenericParam [−][src]
pub enum GenericParam { Type(TypeParam), Lifetime(LifetimeDef), Const(ConstParam), }
This is supported on crate features
full
or derive
only.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
impl Clone for GenericParam
[src]
impl Clone for GenericParam
[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 Debug for GenericParam
[src]
impl Debug for GenericParam
[src]This is supported on crate feature
extra-traits
only.impl Eq for GenericParam
[src]
impl Eq for GenericParam
[src]This is supported on crate feature
extra-traits
only.impl From<ConstParam> for GenericParam
[src]
impl From<ConstParam> for GenericParam
[src]fn from(e: ConstParam) -> GenericParam
[src]
impl From<LifetimeDef> for GenericParam
[src]
impl From<LifetimeDef> for GenericParam
[src]fn from(e: LifetimeDef) -> GenericParam
[src]
impl From<TypeParam> for GenericParam
[src]
impl From<TypeParam> for GenericParam
[src]fn from(e: TypeParam) -> GenericParam
[src]
impl Hash for GenericParam
[src]
impl Hash for GenericParam
[src]This is supported on crate feature
extra-traits
only.impl Parse for GenericParam
[src]
impl Parse for GenericParam
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<GenericParam> for GenericParam
[src]
impl PartialEq<GenericParam> for GenericParam
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for GenericParam
[src]
impl ToTokens for GenericParam
[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 GenericParam
impl RefUnwindSafe for GenericParam
impl !Send for GenericParam
impl !Send for GenericParam
impl !Sync for GenericParam
impl !Sync for GenericParam
impl Unpin for GenericParam
impl Unpin for GenericParam
impl UnwindSafe for GenericParam
impl UnwindSafe for GenericParam