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
impl StructuralPartialEq for OpAsgn
Auto Trait Implementations
impl RefUnwindSafe for OpAsgn
impl Send for OpAsgn
impl Sync for OpAsgn
impl Unpin for OpAsgn
impl UnwindSafe for OpAsgn
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more