Struct regex_syntax::ast::WithComments [−][src]
Expand description
An abstract syntax tree for a singular expression along with comments found.
Comments are not stored in the tree itself to avoid complexity. Each comment contains a span of precisely where it occurred in the original regular expression.
Fields
ast: Ast
The actual ast.
comments: Vec<Comment>
All comments found in the original regular expression.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for WithComments
impl Send for WithComments
impl Sync for WithComments
impl Unpin for WithComments
impl UnwindSafe for WithComments
Blanket Implementations
Mutably borrows from an owned value. Read more