Struct syntax::ast::Ident
[−]
[src]
pub struct Ident {
pub name: Name,
pub ctxt: SyntaxContext,
}Unstable
An identifier contains a Name (index into the interner table) and a SyntaxContext to track renaming and macro expansion per Flatt et al., "Macros That Work Together"
Fields
name | Unstable |
ctxt | Unstable |
Methods
impl Ident
fn new(name: Name) -> Ident
Unstable
Construct an identifier with the given name and an empty context:
fn as_str<'a>(&'a self) -> &'a str
Unstable