Enum regex_syntax::ast::parse::GroupState
source · enum GroupState {
Group {
concat: Concat,
group: Group,
ignore_whitespace: bool,
},
Alternation(Alternation),
}
Expand description
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
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§
source§impl Clone for GroupState
impl Clone for GroupState
source§fn clone(&self) -> GroupState
fn clone(&self) -> GroupState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for GroupState
impl RefUnwindSafe for GroupState
impl Send for GroupState
impl Sync for GroupState
impl Unpin for GroupState
impl UnwindSafe for GroupState
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