ParserAmbigID

Trait ParserAmbigID 

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

A trait representing an identifier for an ambiguity in the grammar.

Ambiguities occur when multiple parses are possible for the same input span. 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 ambiguity identifiers.

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§