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: StringName 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: LocLocation 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: LocLocation of the full expression
@foo = 42
~~~~~~~~~Trait Implementations
impl StructuralPartialEq for Ivasgn
Auto Trait Implementations
impl RefUnwindSafe for Ivasgn
impl Send for Ivasgn
impl Sync for Ivasgn
impl Unpin for Ivasgn
impl UnwindSafe for Ivasgn
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