Enum syntax::ext::tt::quoted::TokenTree [] [src]

pub enum TokenTree {
    Token(SpanToken),
    Delimited(SpanRc<Delimited>),
    Sequence(SpanRc<SequenceRepetition>),
    MetaVarDecl(SpanIdentIdent),
}
🔬 This is a nightly-only experimental API. (rustc_private)

Similar to tokenstream::TokenTree, except that $i, $i:ident, and $(...) are "first-class" token trees.

Variants

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

A kleene-style repetition sequence with a span

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

Matches a nonterminal. This is only used in the left hand side of MBE macros.

Methods

impl TokenTree
[src]

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

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

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

Retrieve the TokenTree's span.

Trait Implementations

impl Debug for TokenTree
[src]

Formats the value using the given formatter.

impl Clone for TokenTree
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for TokenTree
[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 TokenTree
[src]

impl Encodable for TokenTree
[src]

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

deprecated in favor of rustc-serialize on crates.io

impl Decodable for TokenTree
[src]

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

deprecated in favor of rustc-serialize on crates.io

impl Hash for TokenTree
[src]

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

Feeds a slice of this type into the state provided.