pub struct LookaheadRuleRefSet<Term> {
pub rules: BTreeMap<ShiftedRuleRef, BTreeSet<Term>>,
}Expand description
set of lookahead rules
Fields§
§rules: BTreeMap<ShiftedRuleRef, BTreeSet<Term>>Implementations§
Source§impl<Term> LookaheadRuleRefSet<Term>
impl<Term> LookaheadRuleRefSet<Term>
pub fn new() -> LookaheadRuleRefSet<Term>
pub fn add(&mut self, rule: ShiftedRuleRef, lookaheads: BTreeSet<Term>) -> boolwhere
Term: Ord,
Trait Implementations§
Source§impl<Term> Clone for LookaheadRuleRefSet<Term>where
Term: Clone,
impl<Term> Clone for LookaheadRuleRefSet<Term>where
Term: Clone,
Source§fn clone(&self) -> LookaheadRuleRefSet<Term>
fn clone(&self) -> LookaheadRuleRefSet<Term>
Returns a duplicate 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 moreSource§impl<Term> Debug for LookaheadRuleRefSet<Term>where
Term: Debug,
impl<Term> Debug for LookaheadRuleRefSet<Term>where
Term: Debug,
Source§impl<Term> Default for LookaheadRuleRefSet<Term>where
Term: Default,
impl<Term> Default for LookaheadRuleRefSet<Term>where
Term: Default,
Source§fn default() -> LookaheadRuleRefSet<Term>
fn default() -> LookaheadRuleRefSet<Term>
Returns the “default value” for a type. Read more
Source§impl<Term> Ord for LookaheadRuleRefSet<Term>where
Term: Ord,
impl<Term> Ord for LookaheadRuleRefSet<Term>where
Term: Ord,
Source§fn cmp(&self, other: &LookaheadRuleRefSet<Term>) -> Ordering
fn cmp(&self, other: &LookaheadRuleRefSet<Term>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Term> PartialEq for LookaheadRuleRefSet<Term>where
Term: PartialEq,
impl<Term> PartialEq for LookaheadRuleRefSet<Term>where
Term: PartialEq,
Source§impl<Term> PartialOrd for LookaheadRuleRefSet<Term>where
Term: PartialOrd,
impl<Term> PartialOrd for LookaheadRuleRefSet<Term>where
Term: PartialOrd,
impl<Term> Eq for LookaheadRuleRefSet<Term>where
Term: Eq,
impl<Term> StructuralPartialEq for LookaheadRuleRefSet<Term>
Auto Trait Implementations§
impl<Term> Freeze for LookaheadRuleRefSet<Term>
impl<Term> RefUnwindSafe for LookaheadRuleRefSet<Term>where
Term: RefUnwindSafe,
impl<Term> Send for LookaheadRuleRefSet<Term>where
Term: Send,
impl<Term> Sync for LookaheadRuleRefSet<Term>where
Term: Sync,
impl<Term> Unpin for LookaheadRuleRefSet<Term>
impl<Term> UnwindSafe for LookaheadRuleRefSet<Term>where
Term: 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