Struct lib_ruby_parser::nodes::MatchVar [−][src]
Expand description
Represents matching with assignment into a local variable (i.e. pattern => var)
Fields
name: StringName of the variable that is assigned if matching succeeds
name_l: LocLocation of the name
case foo; in pattern => bar; end
~~~Note it can also be produced by a hash pattern
case foo; in { a: }; end
~expression_l: LocLocation of the full expression
case foo; in pattern => bar; end
~~~Note it can also be produced by a hash pattern
case foo; in { a: }; end
~~Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MatchVar
impl UnwindSafe for MatchVar
Blanket Implementations
Mutably borrows from an owned value. Read more