Struct lib_ruby_parser::nodes::Masgn
source · #[repr(C)]pub struct Masgn {
pub lhs: Box<Node>,
pub rhs: Box<Node>,
pub operator_l: Loc,
pub expression_l: Loc,
}
Expand description
Represents mass-assignment (i.e. foo, bar = 1, 2
)
Fields§
§lhs: Box<Node>
Left hand statement of the assignment
rhs: Box<Node>
Left hand statement of the assignment
operator_l: Loc
Location of the =
operator
foo, bar = 1, 2
~
expression_l: Loc
Location of the full expression
foo, bar = 1, 2
~~~~~~~~~~~~~~~
Trait Implementations§
source§impl PartialEq for Masgn
impl PartialEq for Masgn
impl StructuralPartialEq for Masgn
Auto Trait Implementations§
impl Freeze for Masgn
impl RefUnwindSafe for Masgn
impl Send for Masgn
impl Sync for Masgn
impl Unpin for Masgn
impl UnwindSafe for Masgn
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