Struct WithComments
pub struct WithComments { pub ast: Ast, pub comments: Vec<Comment> }
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: AstThe actual ast.
comments: Vec<Comment>All comments found in the original regular expression.
Trait Implementations
impl Clone for WithComments
fn clone(&self) -> Self
impl Debug for WithComments
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for WithComments
impl PartialEq for WithComments
fn eq(&self, other: &Self) -> bool