Struct syn::Lifetime [−][src]
A Rust lifetime: 'a
.
Lifetime names must conform to the following rules:
- Must start with an apostrophe.
- Must not consist of just an apostrophe:
'
. - Character after the apostrophe must be
_
or a Unicode code point with the XID_Start property. - All following characters must be Unicode code points with the XID_Continue property.
Fields
apostrophe: Span
ident: Ident
Implementations
Trait Implementations
impl Clone for Lifetime
[src]
impl Clone for Lifetime
[src]fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<Lifetime> for TypeParamBound
[src]
impl From<Lifetime> for TypeParamBound
[src]fn from(e: Lifetime) -> TypeParamBound
[src]
impl Parse for Lifetime
[src]
impl Parse for Lifetime
[src]This is supported on crate feature
parsing
only.fn parse(input: ParseStream<'_>) -> Result<Self>
[src]
impl PartialOrd<Lifetime> for Lifetime
[src]
impl PartialOrd<Lifetime> for Lifetime
[src]impl ToTokens for Lifetime
[src]
impl ToTokens for Lifetime
[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 Lifetime
impl RefUnwindSafe for Lifetime
impl UnwindSafe for Lifetime
impl UnwindSafe for Lifetime