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