pub enum PushOrPop {
Push(Vec<State>),
Pop,
Neither,
}Expand description
An enum for manipulating the machine stack. Transition methods should return this information
with a possible next state, so the parser knows how to proceed. The Push variant signifies
a state should be pushed on top of the stack, Pop tells of the need to pop from the stack
and Neither initiates a transition of the current state into another one.
Variants§
Push(Vec<State>)
Causes Parser::parse to push the contained states on top of the parser stack.
Pop
Causes Parser::parse to pop the topmost state from the parser state stack.
Neither
Signifies to Parser::parse that nothing about the stack needs to change.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PushOrPop
impl RefUnwindSafe for PushOrPop
impl Send for PushOrPop
impl Sync for PushOrPop
impl Unpin for PushOrPop
impl UnwindSafe for PushOrPop
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