#[repr(C)]pub struct pm_class_variable_and_write_node {
pub base: pm_node_t,
pub name: pm_constant_id_t,
pub name_loc: pm_location_t,
pub operator_loc: pm_location_t,
pub value: *mut pm_node,
}
Expand description
ClassVariableAndWriteNode
Represents the use of the &&=
operator for assignment to a class variable.
@@target &&= value
^^^^^^^^^^^^^^^^^^
Type: ::PM_CLASS_VARIABLE_AND_WRITE_NODE
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
name: pm_constant_id_t
ClassVariableAndWriteNode#name
The name of the class variable, which is a @@
followed by an identifier.
@@target &&= value # name `:@@target`
^^^^^^^^
name_loc: pm_location_t
ClassVariableAndWriteNode#name_loc
Represents the location of the variable name.
@@target &&= value
^^^^^^^^
operator_loc: pm_location_t
ClassVariableAndWriteNode#operator_loc
Represents the location of the &&=
operator.
@@target &&= value
^^^
value: *mut pm_node
ClassVariableAndWriteNode#value
Represents the value being assigned. This can be any non-void expression.
@@target &&= value
^^^^^
Trait Implementations§
Source§impl Clone for pm_class_variable_and_write_node
impl Clone for pm_class_variable_and_write_node
Source§fn clone(&self) -> pm_class_variable_and_write_node
fn clone(&self) -> pm_class_variable_and_write_node
Returns a copy 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_class_variable_and_write_node
Auto Trait Implementations§
impl Freeze for pm_class_variable_and_write_node
impl RefUnwindSafe for pm_class_variable_and_write_node
impl !Send for pm_class_variable_and_write_node
impl !Sync for pm_class_variable_and_write_node
impl Unpin for pm_class_variable_and_write_node
impl UnwindSafe for pm_class_variable_and_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