#[repr(C)]pub struct pm_alias_global_variable_node {
pub base: pm_node_t,
pub new_name: *mut pm_node,
pub old_name: *mut pm_node,
pub keyword_loc: pm_location_t,
}Expand description
AliasGlobalVariableNode
Represents the use of the alias keyword to alias a global variable.
alias $foo $bar
^^^^^^^^^^^^^^^Type: ::PM_ALIAS_GLOBAL_VARIABLE_NODE
@extends pm_node_t
Fields§
§base: pm_node_tThe embedded base node.
new_name: *mut pm_nodeAliasGlobalVariableNode#new_name
Represents the new name of the global variable that can be used after aliasing.
alias $foo $bar
^^^^old_name: *mut pm_nodeAliasGlobalVariableNode#old_name
Represents the old name of the global variable that can be used before aliasing.
alias $foo $bar
^^^^keyword_loc: pm_location_tAliasGlobalVariableNode#keyword_loc
The location of the alias keyword.
alias $foo $bar
^^^^^Trait Implementations§
Source§impl Clone for pm_alias_global_variable_node
impl Clone for pm_alias_global_variable_node
Source§fn clone(&self) -> pm_alias_global_variable_node
fn clone(&self) -> pm_alias_global_variable_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_alias_global_variable_node
Auto Trait Implementations§
impl Freeze for pm_alias_global_variable_node
impl RefUnwindSafe for pm_alias_global_variable_node
impl !Send for pm_alias_global_variable_node
impl !Sync for pm_alias_global_variable_node
impl Unpin for pm_alias_global_variable_node
impl UnwindSafe for pm_alias_global_variable_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