pub struct TransitionStackItem {
pub cursor: usize,
pub repetition_count: usize,
pub current_node_index: usize,
pub transition_index: usize,
}Expand description
Represents an item in the transition stack of a routine.
The transition stack is similar to a call stack in programming languages.
Note that the cursor and repetition_count should be stored in the stack item
instead of the context because they are specific to the transition being executed and may change during backtracking.
Fields§
§cursor: usize§repetition_count: usize§current_node_index: usize§transition_index: usizeImplementations§
Auto Trait Implementations§
impl Freeze for TransitionStackItem
impl RefUnwindSafe for TransitionStackItem
impl Send for TransitionStackItem
impl Sync for TransitionStackItem
impl Unpin for TransitionStackItem
impl UnsafeUnpin for TransitionStackItem
impl UnwindSafe for TransitionStackItem
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