pub struct TtParser<'tt> {
    macro_name: Ident,
    cur_items: Vec<Box<MatcherPos<'tt>>>,
    next_items: Vec<Box<MatcherPos<'tt>>>,
    bb_items: Vec<Box<MatcherPos<'tt>>>,
}

Fields

macro_name: Identcur_items: Vec<Box<MatcherPos<'tt>>>

The set of current items to be processed. This should be empty by the end of a successful execution of parse_tt_inner.

next_items: Vec<Box<MatcherPos<'tt>>>

The set of newly generated items. These are used to replenish cur_items in the function parse_tt.

bb_items: Vec<Box<MatcherPos<'tt>>>

The set of items that are waiting for the black-box parser.

Implementations

Process the matcher positions of cur_items until it is empty. In the process, this will produce more items in next_items and bb_items.

For more info about the how this happens, see the module-level doc comments and the inline comments of this function.

Returns

Some(result) if everything is finished, None otherwise. Note that matches are kept track of through the items generated.

Use the given slice of token trees (ms) as a matcher. Match the token stream from the given parser against it and return the match.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Layout

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 88 bytes