pub fn lifetime(&self) -> Option<ast::Ident> {
        match self.kind {
            Lifetime(name) => Some(ast::Ident::new(name, self.span)),
            Interpolated(ref nt) => match **nt {
                NtLifetime(ident) => Some(ident),
                _ => None,
            },
            _ => None,
        }
    }
/// Returns a lifetime identifier if this token is a lifetime.
Returns a lifetime identifier if this token is a lifetime.
Returns a lifetime identifier if this token is a lifetime .
pub fn lifetime(&self) -> Option<ast::Ident> {
        match self.kind {
            Lifetime(name) => Some(ast::Ident::new(name, self.span)),
            Interpolated(ref nt) => match **nt {
                NtLifetime(ident) => Some(ident),
                _ => None,
            },
            _ => None,
        }
    }
pub fn lifetime ( & self ) -> Option < ast :: Ident > { match self . kind { Lifetime ( name ) => Some ( ast :: Ident :: new ( name , self . span ) ) , Interpolated ( ref nt ) => match * * nt { NtLifetime ( ident ) => Some ( ident ) , _ => None , } , _ => None , } }
Returns a lifetime identifier if this token is a lifetime.
Returns a lifetime identifier if this token is a lifetime .
&self
&self