Enum regex_syntax::hir::visitor::Frame [−][src]
enum Frame<'a> { Repetition(&'a Repetition), Group(&'a Group), Concat { head: &'a Hir, tail: &'a [Hir], }, Alternation { head: &'a Hir, tail: &'a [Hir], }, }
Represents a single stack frame while performing structural induction over
an Hir
.
Variants
Repetition(&'a Repetition)
A stack frame allocated just before descending into a repetition operator's child node.
Group(&'a Group)
A stack frame allocated just before descending into a group's child node.
Concat
The stack frame used while visiting every child node of a concatenation of expressions.
Fields of Concat
head: &'a Hir | The child node we are currently visiting. |
tail: &'a [Hir] | The remaining child nodes to visit (which may be empty). |
Alternation
The stack frame used while visiting every child node of an alternation of expressions.
Fields of Alternation
head: &'a Hir | The child node we are currently visiting. |
tail: &'a [Hir] | The remaining child nodes to visit (which may be empty). |
Methods
impl<'a> Frame<'a>
[src]
impl<'a> Frame<'a>
fn child(&self) -> &'a Hir
[src]
fn child(&self) -> &'a Hir
Perform the next inductive step on this frame and return the next child HIR node to visit.