Struct syn::LifetimeDef [−][src]
pub struct LifetimeDef { pub attrs: Vec<Attribute>, pub lifetime: Lifetime, pub colon_token: Option<Colon>, pub bounds: Punctuated<Lifetime, Add>, }
This is supported on crate features
full
or derive
only.A lifetime definition: 'a: 'b + 'c + 'd
.
This type is available only if Syn is built with the "derive"
or
"full"
feature.
Fields
attrs: Vec<Attribute>
lifetime: Lifetime
colon_token: Option<Colon>
bounds: Punctuated<Lifetime, Add>
Implementations
impl LifetimeDef
[src]
impl LifetimeDef
[src]Trait Implementations
impl Clone for LifetimeDef
[src]
impl Clone for LifetimeDef
[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 LifetimeDef
[src]
impl Debug for LifetimeDef
[src]This is supported on crate feature
extra-traits
only.impl Eq for LifetimeDef
[src]
impl Eq for LifetimeDef
[src]This is supported on crate feature
extra-traits
only.impl From<LifetimeDef> for GenericParam
[src]
impl From<LifetimeDef> for GenericParam
[src]fn from(e: LifetimeDef) -> GenericParam
[src]
impl Hash for LifetimeDef
[src]
impl Hash for LifetimeDef
[src]This is supported on crate feature
extra-traits
only.impl Parse for LifetimeDef
[src]
impl Parse for LifetimeDef
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialEq<LifetimeDef> for LifetimeDef
[src]
impl PartialEq<LifetimeDef> for LifetimeDef
[src]This is supported on crate feature
extra-traits
only.impl ToTokens for LifetimeDef
[src]
impl ToTokens for LifetimeDef
[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 LifetimeDef
impl RefUnwindSafe for LifetimeDef
impl !Send for LifetimeDef
impl !Send for LifetimeDef
impl !Sync for LifetimeDef
impl !Sync for LifetimeDef
impl Unpin for LifetimeDef
impl Unpin for LifetimeDef
impl UnwindSafe for LifetimeDef
impl UnwindSafe for LifetimeDef