Struct Action
pub struct Action(/* private fields */);Expand description
A LALR action cell, packed into a u32 (POC-proven encoding): Action::NONE
= u32::MAX; high bit set = reduce (low 31 bits = rule index); high bit clear
= shift/goto target state. A repr(transparent) newtype so a cell can’t be
used as a bare integer (indexed with, arithmetic’d) — the packed word is
reachable only through the constructors/queries below.
Implementations§
Trait Implementations§
impl Copy for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin 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