Enum regex_syntax::ast::visitor::Frame
source · enum Frame<'a> {
Repetition(&'a Repetition),
Group(&'a Group),
Concat {
head: &'a Ast,
tail: &'a [Ast],
},
Alternation {
head: &'a Ast,
tail: &'a [Ast],
},
}
Expand description
Represents a single stack frame while performing structural induction over
an Ast
.
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
Alternation
The stack frame used while visiting every child node of an alternation of expressions.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Frame<'a>
impl<'a> RefUnwindSafe for Frame<'a>
impl<'a> Send for Frame<'a>
impl<'a> Sync for Frame<'a>
impl<'a> Unpin for Frame<'a>
impl<'a> UnwindSafe for Frame<'a>
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