pub struct TokenRepository<'a> { /* private fields */ }
Expand description

The proxy structure for a repository of matched tokens

Implementations§

Creates a new repository

Creates a new mutable repository

Registers a new token in this repository

Gets the terminals

Gets the input text

Gets the number of tokens in this repository

Gets the terminal’s identifier for the i-th token

Gets the i-th token

Gets the number of tokens

Gets the token (if any) that contains the specified index in the input text

Trait Implementations§

Implementation of Iterable for TokenRepository

The type of the elements being iterated over.
The type of the iterator.
Creates an iterator over this Iterable structure.

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.