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: StringOperator, can be one of:
1. +=
2. -=
3. *=
4. /=
5. |=
6. &=
7. >>=
8. <<=
9. %=
10. ^=
11. **=
value: Box<Node>Right hand statement of the assignment
operator_l: LocLocation of the operator
a.b <<= c
~~~
expression_l: LocLocation of the operator
a.b <<= c
~~~~~~~~~
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for OpAsgnimpl UnwindSafe for OpAsgnBlanket Implementations
Mutably borrows from an owned value. Read more