Module syntax::ext::quote::rt [] [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?

Quasiquoting works via token trees.

This is registered as a set of expression syntax extension called quote! that lifts its argument token-tree to an AST representing the construction of the same token tree, with token::SubstNt interpreted as antiquotes (splices).

Reexports

pub use parse::new_parser_from_tts;
pub use codemap::dummy_spanned;

Structs

BytePos [
Experimental
]

A byte offset. Keep this small (currently 32-bits), as AST contains a lot of them.

Span [
Experimental
]

A compressed span. Contains either fields of SpanData inline if they are small, or index into span interner. The primary goal of Span is to be as small as possible and fit into other structures (that's why it uses packed as well). Decoding speed is the second priority. See SpanData for the info on span fields in decoded representation.

Enums

FileName [
Experimental
]

Differentiates between real files and common virtual files

Constants

DUMMY_SP [
Experimental
]

Dummy span, both position and length are zero, syntax context is zero as well. This span is kept inline and encoded with format 0.

Traits

ExtParseUtils [
Experimental
]
ToTokens [
Experimental
]