#[repr(C)]pub struct MatchWithLvasgn {
pub re: Box<Node>,
pub value: Box<Node>,
pub operator_l: Loc,
pub expression_l: Loc,
}
Expand description
Represents matching a regex that produces local variables (i.e. /(?<match>bar)/ =~ 'bar'
)
Each named group in regex declares a local variable.
Fields§
§re: Box<Node>
Regex that is used for matching
value: Box<Node>
Value that is used for matching
operator_l: Loc
Location of the =~
operatir
/(?<match>bar)/ =~ 'bar'
~~
expression_l: Loc
Location of the full expression
/(?<match>bar)/ =~ 'bar'
~~~~~~~~~~~~~~~~~~~~~~~~
Trait Implementations§
Source§impl Clone for MatchWithLvasgn
impl Clone for MatchWithLvasgn
Source§fn clone(&self) -> MatchWithLvasgn
fn clone(&self) -> MatchWithLvasgn
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 MatchWithLvasgn
impl Debug for MatchWithLvasgn
Source§impl PartialEq for MatchWithLvasgn
impl PartialEq for MatchWithLvasgn
impl StructuralPartialEq for MatchWithLvasgn
Auto Trait Implementations§
impl Freeze for MatchWithLvasgn
impl RefUnwindSafe for MatchWithLvasgn
impl Send for MatchWithLvasgn
impl Sync for MatchWithLvasgn
impl Unpin for MatchWithLvasgn
impl UnwindSafe for MatchWithLvasgn
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