pub struct WithComments {
pub ast: Ast,
pub comments: Vec<Comment>,
}
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§
Source§impl Clone for WithComments
impl Clone for WithComments
Source§fn clone(&self) -> WithComments
fn clone(&self) -> WithComments
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 moreSource§impl Debug for WithComments
impl Debug for WithComments
Source§impl PartialEq for WithComments
impl PartialEq for WithComments
impl Eq for WithComments
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 UnwindSafe for WithComments
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes