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
sourceimpl Clone for MatchWithLvasgn
impl Clone for MatchWithLvasgn
sourcefn clone(&self) -> MatchWithLvasgn
fn clone(&self) -> MatchWithLvasgn
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MatchWithLvasgn
impl Debug for MatchWithLvasgn
sourceimpl PartialEq<MatchWithLvasgn> for MatchWithLvasgn
impl PartialEq<MatchWithLvasgn> for MatchWithLvasgn
sourcefn eq(&self, other: &MatchWithLvasgn) -> bool
fn eq(&self, other: &MatchWithLvasgn) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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