pub enum HirExpr {
Empty,
Literal(Vec<u8>),
Class(HirClass),
UnicodeCpClass(CodepointClass),
Concat(Vec<HirExpr>),
Alt(Vec<HirExpr>),
Repeat(Box<HirRepeat>),
Capture(Box<HirCapture>),
Anchor(HirAnchor),
Lookaround(Box<HirLookaround>),
Backref(u32),
}Expand description
An HIR expression node.
Variants§
Empty
Empty expression.
Literal(Vec<u8>)
A literal byte sequence.
Class(HirClass)
A byte class (set of byte ranges).
UnicodeCpClass(CodepointClass)
A Unicode codepoint class (used for efficient matching of Unicode patterns). This matches a single UTF-8 encoded codepoint and checks membership.
Concat(Vec<HirExpr>)
Concatenation.
Alt(Vec<HirExpr>)
Alternation.
Repeat(Box<HirRepeat>)
Repetition.
Capture(Box<HirCapture>)
Capture group.
Anchor(HirAnchor)
Anchor.
Lookaround(Box<HirLookaround>)
Lookaround.
Backref(u32)
Backreference.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HirExpr
impl RefUnwindSafe for HirExpr
impl Send for HirExpr
impl Sync for HirExpr
impl Unpin for HirExpr
impl UnwindSafe for HirExpr
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