Struct syntex_syntax::ast::Ident [] [src]

pub struct Ident {
    pub name: Symbol,
    pub ctxt: SyntaxContext,
}

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

Methods

impl Ident
[src]

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

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.

impl Encodable for Ident
[src]

Serialize a value using an Encoder.

impl Decodable for Ident
[src]

Deserialize a value using a Decoder.

impl ToTokens for Ident
[src]