Struct pmutil::Quote [] [src]

pub struct Quote { /* fields omitted */ }

Buffer for quasi quotting.

Methods

impl Quote
[src]

[src]

[src]

Shorthand for

This example is not tested
Quote::new(Span::call_site())

[src]

Shorthand for

This example is not tested
Quote::new(tokens.first_last())

[src]

Shorthand for

This example is not tested
 tokens
   .as_ref()
   .map(|tokens| Quote::from_tokens(tokens))
   .unwrap_or_else(|| Quote::new(default_span))

impl Quote
[src]

[src]

Parse tokens as Node. Panics if parsing failed.

impl Quote
[src]

Methods for quasi-quotting.

[src]

[src]

Parse token and append it to self.

[src]

Respan token and append it to self.

[src]

Respan symbol and append it to self.

[src]

Respan and append TokenStream::Group

[src]

Appends node into self without respanning.

Trait Implementations

impl IntoIterator for Quote
[src]

Which kind of iterator are we turning this into?

The type of the elements being iterated over.

[src]

Creates an iterator from a value. Read more

impl From<Quote> for TokenStream
[src]

[src]

Performs the conversion.

impl From<Quote> for Tokens
[src]

[src]

Performs the conversion.

impl From<Quote> for TokenStream
[src]

[src]

Performs the conversion.

impl ToTokens for Quote
[src]

[src]

Write self to the given Tokens. Read more

[src]

Convert self directly into a Tokens object. Read more

Auto Trait Implementations

impl !Send for Quote

impl !Sync for Quote