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: Ast

The 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

impl StructuralPartialEq for WithComments

Auto Trait Implementations

impl Freeze for WithComments

impl RefUnwindSafe for WithComments

impl Send for WithComments

impl Sync for WithComments

impl Unpin for WithComments

impl UnsafeUnpin for WithComments

impl UnwindSafe for WithComments

Blanket Implementations

impl<T> Any for WithComments where T: 'static + ?Sized,

impl<T> Borrow<T> for WithComments where T: ?Sized,

impl<T> BorrowMut<T> for WithComments where T: ?Sized,

impl<T> CloneToUninit for WithComments where T: Clone,

impl<T> From<T> for WithComments

impl<T> ToOwned for WithComments where T: Clone,

impl<T, U> Into<U> for WithComments where U: From<T>,

impl<T, U> TryFrom<U> for WithComments where U: Into<T>,

impl<T, U> TryInto<U> for WithComments where U: TryFrom<T>,