Struct lib_ruby_parser::nodes::OpAsgn
source · #[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§
source§impl PartialEq for OpAsgn
impl PartialEq for OpAsgn
impl StructuralPartialEq for OpAsgn
Auto Trait Implementations§
impl Freeze for OpAsgn
impl RefUnwindSafe for OpAsgn
impl Send for OpAsgn
impl Sync for OpAsgn
impl Unpin for OpAsgn
impl UnwindSafe for OpAsgn
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more