Lines Matching defs:quote
1 //! [![github]](https://github.com/dtolnay/quote) [![crates-io]](https://crates.io/crates/quote) [![docs-rs]](https://docs.rs/quote)
9 //! This crate provides the [`quote!`] macro for turning Rust syntax tree data
12 //! [`quote!`]: macro.quote.html
21 //! Within the `quote!` macro, we can write what looks like code to our text
34 //! quote = "1.0"
44 //! Check out the documentation of the [`quote!`] macro for more detail about
52 //! # use quote::quote;
61 //! let tokens = quote! {
87 //! When using `quote` in a build.rs or main.rs and writing the output out to a
95 #![doc(html_root_url = "https://docs.rs/quote/1.0.35")]
168 /// `ToTokens` implementation. Tokens that originate within the `quote!`
194 /// `quote!` from a procedural macro usually looks like `tokens.into()` or
206 /// crate for further useful guidance on using `quote!` as part of a procedural
219 /// use quote::quote;
234 /// let expanded = quote! {
254 /// produced by `quote!` themselves implement `ToTokens` and so can be
255 /// interpolated into later `quote!` invocations to build up a final result.
258 /// # use quote::quote;
260 /// let type_definition = quote! {...};
261 /// let methods = quote! {...};
263 /// let tokens = quote! {
283 /// # use quote::quote;
288 /// quote! {
300 /// # use quote::{format_ident, quote};
305 /// quote! {
317 /// # use quote::quote;
323 /// quote! {
338 /// # use quote::quote;
340 /// # let field_type = quote!(...);
343 /// quote! {
356 /// # use quote::quote;
358 /// # let field_type = quote!(...);
360 /// quote! {
371 /// # use quote::quote;
373 /// # let field_type = quote!(...);
375 /// quote! {
386 /// quote:
389 /// quote! {
397 /// quote! {
403 /// formatting the doc string literal outside of quote.
407 /// # use quote::quote;
415 /// quote! {
438 /// quote! {
445 /// # use quote::quote;
449 /// # use quote::{ToTokens, TokenStreamExt};
475 /// quote! {
483 macro_rules! quote {
491 macro_rules! quote {
524 /// Same as `quote!`, but applies a given span to all tokens originating within
532 /// to quote. The span expression should be brief — use a variable for
540 /// # use quote::quote_spanned;
582 /// # use quote::{quote_spanned, TokenStreamExt, ToTokens};
923 // https://github.com/dtolnay/quote/issues/130
980 // https://github.com/dtolnay/quote/issues/130
1017 $crate::quote!($($inner)*),
1025 $crate::quote!($($inner)*),
1033 $crate::quote!($($inner)*),