Struct pmutil::Quote[][src]

pub struct Quote { /* fields omitted */ }

Buffer for quasi quotting.

Methods

impl Quote
[src]

Shorthand for

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

Shorthand for

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

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]

Parse tokens as Node. Panics if parsing failed.

impl Quote
[src]

Methods for quasi-quotting.

Parse token and append it to self.

Append tt to self.

Respan symbol and append it to self.

Respan and append TokenStream::Group

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.

Creates an iterator from a value. Read more

impl From<Quote> for TokenStream
[src]

Performs the conversion.

impl From<Quote> for TokenStream
[src]

Performs the conversion.

impl ToTokens for Quote
[src]

Write self to the given TokenStream. Read more

Convert self directly into a TokenStream object. Read more

Auto Trait Implementations

impl !Send for Quote

impl !Sync for Quote