Struct regex_syntax::ast::WithComments
source · [−]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
sourceimpl Clone for WithComments
impl Clone for WithComments
sourcefn clone(&self) -> WithComments
fn clone(&self) -> WithComments
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WithComments
impl Debug for WithComments
sourceimpl PartialEq<WithComments> for WithComments
impl PartialEq<WithComments> for WithComments
sourcefn eq(&self, other: &WithComments) -> bool
fn eq(&self, other: &WithComments) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &WithComments) -> bool
fn ne(&self, other: &WithComments) -> bool
This method tests for !=
.
impl Eq for WithComments
impl StructuralEq for WithComments
impl StructuralPartialEq for WithComments
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more