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

pub struct Ident {
    pub name: Symbol,
    pub span: Span,
}

Fields

Methods

impl Ident
[src]

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

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

Replace lo and hi with those from span, but keep hygiene context.

"Normalize" ident for use in comparisons using "item hygiene". Identifiers with same string value become same if they came from the same "modern" macro (e.g., macro item, but not macro_rules item) and stay different if they came from different "modern" macros. Technically, this operation strips all non-opaque marks from ident's syntactic context.

"Normalize" ident for use in comparisons using "local variable hygiene". Identifiers with same string value become same if they came from the same non-transparent macro (e.g., macro or macro_rules! items) and stay different if they came from different non-transparent macros. Technically, this operation strips all transparent marks from ident's syntactic context.

impl Ident
[src]

Returns true if the token is a keyword used in the language.

Returns true if the token is a keyword reserved for possible future use.

Returns true if the token is either a special identifier or a keyword.

A keyword or reserved identifier that can be used as a path segment.

Trait Implementations

impl Clone for Ident
[src]

Performs copy-assignment from source. Read more

impl Display for Ident
[src]

impl Decodable for Ident
[src]

impl Debug for Ident
[src]

impl Encodable for Ident
[src]

impl Eq for Ident
[src]

impl Copy for Ident
[src]

impl Hash for Ident
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq<Ident> for Ident
[src]

This method tests for !=.

impl ToTokens for Ident
[src]

Auto Trait Implementations

impl !Send for Ident

impl !Sync for Ident

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Encodable for T where
    T: UseSpecializedEncodable + ?Sized
[src]

impl<T> Decodable for T where
    T: UseSpecializedDecodable
[src]

impl<E> SpecializationError for E
[src]

impl<T> Erased for T
[src]

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<E> SpecializationError for E
[src]

impl<T> Erased for T
[src]

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> Erased for T