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: LocLocation of the =~ operatir
/(?<match>bar)/ =~ 'bar'
~~
expression_l: LocLocation 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 MatchWithLvasgnimpl Send for MatchWithLvasgnimpl Sync for MatchWithLvasgnimpl Unpin for MatchWithLvasgnimpl UnwindSafe for MatchWithLvasgnBlanket Implementations
Mutably borrows from an owned value. Read more