Struct syntax::ast::Ident [] [src]

pub struct Ident {
    pub name: Symbol,
    pub ctxt: SyntaxContext,
}
🔬 This is a nightly-only experimental API. (rustc_private)

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

🔬 This is a nightly-only experimental API. (rustc_private)
🔬 This is a nightly-only experimental API. (rustc_private)

Methods

impl Ident
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

🔬 This is a nightly-only experimental API. (rustc_private)

Maps a string to an identifier with an empty syntax context.

🔬 This is a nightly-only experimental API. (rustc_private)

Trait Implementations

impl Clone for Ident
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Ident
[src]

impl PartialEq for Ident
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Ident
[src]

impl Hash for Ident
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Debug for Ident
[src]

Formats the value using the given formatter.

impl Display for Ident
[src]

Formats the value using the given formatter. Read more

impl Encodable for Ident
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

deprecated in favor of rustc-serialize on crates.io

impl Decodable for Ident
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

deprecated in favor of rustc-serialize on crates.io

impl ToTokens for Ident
[src]

🔬 This is a nightly-only experimental API. (rustc_private)