#[repr(C)]pub struct pm_global_variable_write_node {
pub base: pm_node_t,
pub name: pm_constant_id_t,
pub name_loc: pm_location_t,
pub value: *mut pm_node,
pub operator_loc: pm_location_t,
}Expand description
GlobalVariableWriteNode
Represents writing to a global variable.
$foo = 1
^^^^^^^^Type: ::PM_GLOBAL_VARIABLE_WRITE_NODE
@extends pm_node_t
Fields§
§base: pm_node_tThe embedded base node.
name: pm_constant_id_tGlobalVariableWriteNode#name
The name of the global variable, which is a $ followed by an identifier. Alternatively, it can be one of the special global variables designated by a symbol.
$foo = :bar # name `:$foo` $_Test = 123 # name `:$_Test`name_loc: pm_location_tGlobalVariableWriteNode#name_loc
The location of the global variable’s name.
$foo = :bar
^^^^value: *mut pm_nodeGlobalVariableWriteNode#value
The value to write to the global variable. It can be any non-void expression.
$foo = :bar
^^^^ $-xyz = 123
^^^operator_loc: pm_location_tGlobalVariableWriteNode#operator_loc
The location of the = operator.
$foo = :bar
^Trait Implementations§
Source§impl Clone for pm_global_variable_write_node
impl Clone for pm_global_variable_write_node
Source§fn clone(&self) -> pm_global_variable_write_node
fn clone(&self) -> pm_global_variable_write_node
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for pm_global_variable_write_node
Auto Trait Implementations§
impl Freeze for pm_global_variable_write_node
impl RefUnwindSafe for pm_global_variable_write_node
impl !Send for pm_global_variable_write_node
impl !Sync for pm_global_variable_write_node
impl Unpin for pm_global_variable_write_node
impl UnwindSafe for pm_global_variable_write_node
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