pub enum Action<S, P> {
Shift(S),
Reduce(P, usize),
Accept,
Error,
}
Expand description
An action executed by the (G)LR Parser during parsing
Variants§
Trait Implementations§
impl<S: Copy, P: Copy> Copy for Action<S, P>
Auto Trait Implementations§
impl<S, P> RefUnwindSafe for Action<S, P>where
P: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, P> Send for Action<S, P>
impl<S, P> Sync for Action<S, P>
impl<S, P> Unpin for Action<S, P>
impl<S, P> UnwindSafe for Action<S, P>where
P: UnwindSafe,
S: UnwindSafe,
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