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