Struct lib_ruby_parser::nodes::Ivasgn
source · #[repr(C)]pub struct Ivasgn {
pub name: String,
pub value: Option<Box<Node>>,
pub name_l: Loc,
pub operator_l: Option<Loc>,
pub expression_l: Loc,
}
Expand description
Represents instance variable assignment (i.e @foo = 42
)
Fields§
§name: String
Name of the instance variable, String("@foo")
in @foo = 42
value: Option<Box<Node>>
Value that is assigned to instance variable.
None
if instance variable assignment is a part of the multi-assignment.
In such case value
is a part of the Masgn
node.
name_l: Loc
Location of the instance variable name.
@foo = 1
~~~~
operator_l: Option<Loc>
Location of the =
operator.
@foo = 1
~
None
if instance variable assignment is a part of the multi-assignment.
In such case value
is a part of the Masgn
node.
expression_l: Loc
Location of the full expression
@foo = 42
~~~~~~~~~
Trait Implementations§
source§impl PartialEq for Ivasgn
impl PartialEq for Ivasgn
impl StructuralPartialEq for Ivasgn
Auto Trait Implementations§
impl Freeze for Ivasgn
impl RefUnwindSafe for Ivasgn
impl Send for Ivasgn
impl Sync for Ivasgn
impl Unpin for Ivasgn
impl UnwindSafe for Ivasgn
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