pub enum Action {
Shift(StateIdx),
Reduce(ProdIdx),
Accept(Node),
}
Expand description
What action the parser should take upon seeing a lookahead (or more).
Variants§
Shift(StateIdx)
The parser needs to shift into the contained state.
Reduce(ProdIdx)
The parser needs to create a new node, using the contained ProdIdx
.
Accept(Node)
The parser can finish the parsing for the given starting node.
Trait Implementations§
source§impl PartialEq<Action> for Action
impl PartialEq<Action> for Action
impl Copy for Action
impl Eq for Action
impl StructuralEq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more