ParserStateID

Trait ParserStateID 

Source
pub trait ParserStateID:
    Copy
    + Debug
    + Eq
    + Into<usize> {
    const COUNT: usize;
}
Expand description

A trait representing an identifier for a parser state.

Each parser state corresponds to a position in the parsing automaton. The type implementing this trait is typically generated by parlex-gen’s parser generator ASLR.

Required Associated Constants§

Source

const COUNT: usize

The total number of parser states.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§