Enum regex_syntax::ast::parse::GroupState[][src]

enum GroupState {
    Group {
        concat: Concat,
        group: Group,
        ignore_whitespace: bool,
    },
    Alternation(Alternation),
}

GroupState represents a single stack frame while parsing nested groups and alternations. Each frame records the state up to an opening parenthesis or a alternating bracket |.

Variants

This state is pushed whenever an opening group is found.

Fields of Group

The concatenation immediately preceding the opening group.

The group that has been opened. Its sub-AST is always empty.

Whether this group has the x flag enabled or not.

This state is pushed whenever a new alternation branch is found. If an alternation branch is found and this state is at the top of the stack, then this state should be modified to include the new alternation.

Trait Implementations

impl Clone for GroupState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for GroupState
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for GroupState

impl Sync for GroupState