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

A stack frame allocated just before descending into a repetition operator's child node.

A stack frame allocated just before descending into a group's child node.

The stack frame used while visiting every child node of a concatenation of expressions.

Fields of Concat

The child node we are currently visiting.

The remaining child nodes to visit (which may be empty).

The stack frame used while visiting every child node of an alternation of expressions.

Fields of Alternation

The child node we are currently visiting.

The remaining child nodes to visit (which may be empty).

Methods

impl<'a> Frame<'a>
[src]

Perform the next inductive step on this frame and return the next child HIR node to visit.

Auto Trait Implementations

impl<'a> Send for Frame<'a>

impl<'a> Sync for Frame<'a>