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
Group
This state is pushed whenever an opening group is found.
Fields of Group
concat: Concat | The concatenation immediately preceding the opening group. |
group: Group | The group that has been opened. Its sub-AST is always empty. |
ignore_whitespace: bool | Whether this group has the |
Alternation(Alternation)
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]
impl Clone for GroupState
fn clone(&self) -> GroupState
[src]
fn clone(&self) -> GroupState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for GroupState
[src]
impl Debug for GroupState
Auto Trait Implementations
impl Send for GroupState
impl Send for GroupState
impl Sync for GroupState
impl Sync for GroupState