Struct LalrState
pub struct LalrState {
pub position: u32,
pub depth: u32,
}Expand description
Where an LALR parse stood when it failed: its state and its stack depth,
the two things Lark’s ParserState equality compares. State ids are
implementation-defined but consistent within a parser instance — all
match_examples relies on.
Fields§
§position: u32§depth: u32Trait Implementations§
impl Copy for LalrState
impl Eq for LalrState
impl StructuralPartialEq for LalrState
Auto Trait Implementations§
impl Freeze for LalrState
impl RefUnwindSafe for LalrState
impl Send for LalrState
impl Sync for LalrState
impl Unpin for LalrState
impl UnsafeUnpin for LalrState
impl UnwindSafe for LalrState
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