pub struct State {
pub accessing_symbol: Option<Symbol>,
/* private fields */
}
Expand description
A state in the Table
.
Fields§
§accessing_symbol: Option<Symbol>
Symbol used to transition into this state.
Implementations§
source§impl State
impl State
sourcepub fn action_table(&self) -> ActionTable<'_>
pub fn action_table(&self) -> ActionTable<'_>
Get the possible action (depending on the lookahead) for this state.
sourcepub fn goto_table(&self) -> GotoTable<'_>
pub fn goto_table(&self) -> GotoTable<'_>
Get the GotoTable
associated with this state.
sourcepub fn transition(&self, symbol: Symbol) -> Option<StateIdx>
pub fn transition(&self, symbol: Symbol) -> Option<StateIdx>
Get the transition from this state on symbol
, if it exists.
sourcepub fn get_all_transitions(
&self
) -> impl Iterator<Item = (Symbol, StateIdx)> + '_
pub fn get_all_transitions( &self ) -> impl Iterator<Item = (Symbol, StateIdx)> + '_
sourcepub fn core_items(&self) -> &[Item]
pub fn core_items(&self) -> &[Item]
Get all the core Item
s of this state
A core item is an item where the dot is not at the left-most position. In other
words, Item::index
is not 0
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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