Struct lib_ruby_parser::nodes::MatchWithLvasgn
source · #[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<MatchWithLvasgn> for MatchWithLvasgn
impl PartialEq<MatchWithLvasgn> for MatchWithLvasgn
source§fn eq(&self, other: &MatchWithLvasgn) -> bool
fn eq(&self, other: &MatchWithLvasgn) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MatchWithLvasgn
Auto Trait Implementations§
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