pub struct LRContext<'i, I: Input + ?Sized, S, TK> { /* private fields */ }Expand description
Context implementation for LR parsing
Implementations§
Trait Implementations§
source§impl<'i, I, S, TK> Context<'i, I, S, TK> for LRContext<'i, I, S, TK>
impl<'i, I, S, TK> Context<'i, I, S, TK> for LRContext<'i, I, S, TK>
fn set_state(&mut self, state: S)
fn set_position(&mut self, position: usize)
fn set_location(&mut self, location: Location)
fn set_range(&mut self, range: Range<usize>)
source§fn token_ahead(&self) -> Option<&Token<'i, I, TK>>
fn token_ahead(&self) -> Option<&Token<'i, I, TK>>
Next token recognized in the input at the current parsing location
fn set_token_ahead(&mut self, token: Token<'i, I, TK>)
source§fn layout_ahead(&self) -> Option<&'i I>
fn layout_ahead(&self) -> Option<&'i I>
A layout before the token ahead
fn set_layout_ahead(&mut self, layout: Option<&'i I>)
Auto Trait Implementations§
impl<'i, I: ?Sized, S, TK> RefUnwindSafe for LRContext<'i, I, S, TK>
impl<'i, I: ?Sized, S, TK> Send for LRContext<'i, I, S, TK>
impl<'i, I: ?Sized, S, TK> Sync for LRContext<'i, I, S, TK>
impl<'i, I: ?Sized, S, TK> Unpin for LRContext<'i, I, S, TK>
impl<'i, I: ?Sized, S, TK> UnwindSafe for LRContext<'i, I, S, TK>
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