pub struct LRExpected {
    pub shifts: Vec<Symbol>,
    pub reductions: Vec<Symbol>,
}
Expand description

Container for the expected terminals for a LR state

Fields§

§shifts: Vec<Symbol>

The terminals expected for shift actions

§reductions: Vec<Symbol>

The terminals expected for reduction actions

Implementations§

Initializes this container

Adds the specified terminal as expected on a shift action If the terminal is already added to the reduction collection it is removed from it.

Adds the specified terminal as expected on a reduction action If the terminal is in the shift collection, nothing happens.

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.