pub enum Action<StorageT> {
Shift(StIdx<StorageT>),
Reduce(PIdx<StorageT>),
Accept,
Error,
}
Variants§
Shift(StIdx<StorageT>)
Shift to state X in the statetable.
Reduce(PIdx<StorageT>)
Reduce production X in the grammar.
Accept
Accept this input.
Error
No valid action.
Trait Implementations§
source§impl<'de, StorageT> Deserialize<'de> for Action<StorageT>where
StorageT: Deserialize<'de>,
impl<'de, StorageT> Deserialize<'de> for Action<StorageT>where
StorageT: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<StorageT: Copy> Copy for Action<StorageT>
impl<StorageT> StructuralPartialEq for Action<StorageT>
Auto Trait Implementations§
impl<StorageT> Freeze for Action<StorageT>where
StorageT: Freeze,
impl<StorageT> RefUnwindSafe for Action<StorageT>where
StorageT: RefUnwindSafe,
impl<StorageT> Send for Action<StorageT>where
StorageT: Send,
impl<StorageT> Sync for Action<StorageT>where
StorageT: Sync,
impl<StorageT> Unpin for Action<StorageT>where
StorageT: Unpin,
impl<StorageT> UnwindSafe for Action<StorageT>where
StorageT: 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)