Struct rusty_lr_core::LookaheadRule
source · pub struct LookaheadRule<Term, NonTerm> {
pub rule: ShiftedRule<Term, NonTerm>,
pub lookaheads: BTreeSet<Term>,
}
Expand description
shifted rule with lookahead tokens
Fields§
§rule: ShiftedRule<Term, NonTerm>
§lookaheads: BTreeSet<Term>
Trait Implementations§
source§impl<Term: Clone, NonTerm: Clone> Clone for LookaheadRule<Term, NonTerm>
impl<Term: Clone, NonTerm: Clone> Clone for LookaheadRule<Term, NonTerm>
source§fn clone(&self) -> LookaheadRule<Term, NonTerm>
fn clone(&self) -> LookaheadRule<Term, NonTerm>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<Term, NonTerm> Freeze for LookaheadRule<Term, NonTerm>where
NonTerm: Freeze,
impl<Term, NonTerm> RefUnwindSafe for LookaheadRule<Term, NonTerm>where
NonTerm: RefUnwindSafe,
Term: RefUnwindSafe,
impl<Term, NonTerm> Send for LookaheadRule<Term, NonTerm>
impl<Term, NonTerm> Sync for LookaheadRule<Term, NonTerm>
impl<Term, NonTerm> Unpin for LookaheadRule<Term, NonTerm>
impl<Term, NonTerm> UnwindSafe for LookaheadRule<Term, NonTerm>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)