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: StringOperator, can be one of:
+=-=*=/=|=&=>>=<<=%=^=**=
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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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