Module syntax::ext::tt::quoted [] [src]

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

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Structs

Delimited [
Experimental
]

Contains the sub-token-trees of a "delimited" token tree, such as the contents of (. Note that the delimiter itself might be NoDelim.

SequenceRepetition [
Experimental
]

Enums

KleeneOp [
Experimental
]

A Kleene-style repetition operator for token sequences.

TokenTree [
Experimental
]

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

Functions

parse [
Experimental
]

Takes a tokenstream::TokenStream and returns a Vec<self::TokenTree>. Specifically, this takes a generic TokenStream, such as is used in the rest of the compiler, and returns a collection of TokenTree for use in parsing a macro.