pub enum CombRef {
Show 19 variants
Rule(RuleId),
Seq(SeqId),
Choice(ChoiceId),
ZeroOrMore(LoopId),
OneOrMore(LoopId),
Optional(OptId),
Literal(LitId),
CharClass(CharClass),
CharRange(char, char),
Char(char),
AnyChar,
Capture(CapId),
NotFollowedBy(LookId),
FollowedBy(LookId),
Skip(SkipId),
SeparatedBy(SepById),
Pratt(PrattId),
Mapped(MapId),
Memoize(MemoId),
}Expand description
Reference to a combinator by its type and index. Used in generated static tables to reference child combinators.
Variants§
Rule(RuleId)
Reference to a rule
Seq(SeqId)
Reference to a sequence
Choice(ChoiceId)
Reference to a choice
ZeroOrMore(LoopId)
Reference to zero-or-more loop
OneOrMore(LoopId)
Reference to one-or-more loop
Optional(OptId)
Reference to optional
Literal(LitId)
Reference to a literal
CharClass(CharClass)
Match a character class
CharRange(char, char)
Match a character range
Char(char)
Match a single specific character
AnyChar
Match any character
Capture(CapId)
Reference to a capture
NotFollowedBy(LookId)
Reference to not-followed-by lookahead
FollowedBy(LookId)
Reference to followed-by lookahead
Skip(SkipId)
Reference to a skip
SeparatedBy(SepById)
Reference to separated-by
Pratt(PrattId)
Reference to Pratt expression parser
Mapped(MapId)
Reference to a mapped combinator
Memoize(MemoId)
Reference to a memoized combinator
Trait Implementations§
impl Copy for CombRef
impl Eq for CombRef
impl StructuralPartialEq for CombRef
Auto Trait Implementations§
impl Freeze for CombRef
impl RefUnwindSafe for CombRef
impl Send for CombRef
impl Sync for CombRef
impl Unpin for CombRef
impl UnsafeUnpin for CombRef
impl UnwindSafe for CombRef
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