pub enum RKind {
Empty,
Set(CharSet),
Cat(Vec<RNode>),
Alt(Vec<RNode>),
Repeat {
node: Box<RNode>,
min: u64,
max: Option<u64>,
greedy: bool,
},
Assert(TermId),
LookAhead {
neg: bool,
node: Box<RNode>,
},
LookBehind {
neg: bool,
node: Box<RNode>,
},
}Expand description
Node shapes.
Variants§
Empty
Matches the empty string.
Set(CharSet)
One symbol from the set.
Cat(Vec<RNode>)
Sequence.
Alt(Vec<RNode>)
Ordered alternation (backtracking engines try left to right).
Repeat
Repetition; max == None is unbounded.
Fields
Assert(TermId)
Zero-width assertion, evaluated by the term store at a position.
LookAhead
(?=x) / (?!x).
LookBehind
(?<=x) / (?<!x).
Trait Implementations§
Auto Trait Implementations§
impl Forget for RKind
impl Freeze for RKind
impl RefUnwindSafe for RKind
impl Send for RKind
impl Sync for RKind
impl Unpin for RKind
impl UnsafeUnpin for RKind
impl UnwindSafe for RKind
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