[][src]Struct lib_ruby_parser::nodes::OpAsgn

pub struct OpAsgn {
    pub recv: Node,
    pub operator: String,
    pub value: Node,
    pub operator_l: Range,
    pub expression_l: Range,
}

Represents an operation with assignment (e.g. a += 1)

Fields

recv: Node

Left hand statement of the assignment

operator: String

Operator, can be one of: 1. += 2. -= 3. *= 4. /= 5. |= 6. &= 7. >>= 8. <<= 9. %= 10. ^= 11. **=

value: Node

Right hand statement of the assignment

operator_l: Range

Location of the operator

a.b <<= c
    ~~~
expression_l: Range

Location of the operator

a.b <<= c
~~~~~~~~~

Trait Implementations

impl Clone for OpAsgn[src]

impl Debug for OpAsgn[src]

impl PartialEq<OpAsgn> for OpAsgn[src]

impl StructuralPartialEq for OpAsgn[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.