pub struct Context<'a, A: Alphabet> {
pub previous: Option<&'a Module<A>>,
pub next: Option<&'a Module<A>>,
}Expand description
The context given to each Grammar token when evaluating rules.
Fields§
§previous: Option<&'a Module<A>>The grammer token that came right before this one.
next: Option<&'a Module<A>>The grammar token that comes right after this one.
Auto Trait Implementations§
impl<'a, A> Freeze for Context<'a, A>
impl<'a, A> RefUnwindSafe for Context<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for Context<'a, A>where
A: Sync,
impl<'a, A> Sync for Context<'a, A>where
A: Sync,
impl<'a, A> Unpin for Context<'a, A>
impl<'a, A> UnwindSafe for Context<'a, A>where
A: RefUnwindSafe,
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