pub struct CTParser<StorageT = u32>where
    StorageT: Eq + Hash,
{ /* private fields */ }
Expand description

An interface to the result of CTParserBuilder::build().

Implementations

Returns true if this compile-time parser was regenerated or false if it was not.

Returns a HashMap from lexeme string types to numeric types (e.g. INT: 2), suitable for handing to a lexer to coordinate the IDs of lexer and parser.

If there are any conflicts in the grammar, return a tuple which allows users to inspect and pretty print them; otherwise returns None. If the grammar was not regenerated, this will always return None, even if the grammar actually has conflicts.

Note: The conflicts feature is currently unstable and may change in the future.

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.