Struct lib_ruby_parser::nodes::OpAsgn [−][src]
#[repr(C)]pub struct OpAsgn {
pub recv: Box<Node>,
pub operator: String,
pub value: Box<Node>,
pub operator_l: Loc,
pub expression_l: Loc,
}
Expand description
Represents an operation with assignment (e.g. a += 1
)
Fields
recv: Box<Node>
Left hand statement of the assignment
operator: String
Operator, can be one of:
+=
-=
*=
/=
|=
&=
>>=
<<=
%=
^=
**=
value: Box<Node>
Right hand statement of the assignment
operator_l: Loc
Location of the operator
a.b <<= c
~~~
expression_l: Loc
Location of the operator
a.b <<= c
~~~~~~~~~
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OpAsgn
impl UnwindSafe for OpAsgn
Blanket Implementations
Mutably borrows from an owned value. Read more