Lines Matching refs:quote
4 …ild Status](https://api.travis-ci.org/dtolnay/quote.svg?branch=master)](https://travis-ci.org/dtol…
5 [](https://crates.io/crates/quote)
6 [](https://docs.rs/quote/)
8 This crate provides the [`quote!`] macro for turning Rust syntax tree data
11 [`quote!`]: https://docs.rs/quote/1.0/quote/macro.quote.html
20 Within the `quote!` macro, we can write what looks like code to our text editor
34 [*Release notes*](https://github.com/dtolnay/quote/releases)
38 quote = "1.0"
43 The quote crate provides a [`quote!`] macro within which you can write Rust code
49 Within the `quote!` macro, interpolation is done with `#var`. Any type
50 implementing the [`quote::ToTokens`] trait can be interpolated. This includes
53 [`quote::ToTokens`]: https://docs.rs/quote/1.0/quote/trait.ToTokens.html
57 let tokens = quote! {
98 The `quote!` macro evaluates to an expression of type
110 `quote!` from a procedural macro usually looks like `tokens.into()` or
121 produced by `quote!` themselves implement `ToTokens` and so can be interpolated
122 into later `quote!` invocations to build up a final result.
125 let type_definition = quote! {...};
126 let methods = quote! {...};
128 let tokens = quote! {
146 quote! {
157 quote! {
169 quote! {
182 quote! {
194 quote! {
204 quote! {
212 `ToTokens` implementation. Tokens that originate within a `quote!` invocation
220 [`quote_spanned!`]: https://docs.rs/quote/1.0/quote/macro.quote_spanned.html