Struct lib_ruby_parser::nodes::MatchWithLvasgn [−][src]
#[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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more