#[repr(C)]pub struct pm_alias_method_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
AliasMethodNode
Represents the use of the alias
keyword to alias a method.
alias foo bar
^^^^^^^^^^^^^
Type: ::PM_ALIAS_METHOD_NODE
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
new_name: *mut pm_node
AliasMethodNode#new_name
Represents the new name of the method that will be aliased.
alias foo bar
^^^
alias :foo :bar
^^^^
alias :"#{foo}" :"#{bar}"
^^^^^^^^^
old_name: *mut pm_node
AliasMethodNode#old_name
Represents the old name of the method that will be aliased.
alias foo bar
^^^
alias :foo :bar
^^^^
alias :"#{foo}" :"#{bar}"
^^^^^^^^^
keyword_loc: pm_location_t
AliasMethodNode#keyword_loc
Represents the location of the alias
keyword.
alias foo bar
^^^^^
Trait Implementations§
Source§impl Clone for pm_alias_method_node
impl Clone for pm_alias_method_node
Source§fn clone(&self) -> pm_alias_method_node
fn clone(&self) -> pm_alias_method_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 moreSource§impl Debug for pm_alias_method_node
impl Debug for pm_alias_method_node
Source§impl Default for pm_alias_method_node
impl Default for pm_alias_method_node
impl Copy for pm_alias_method_node
Auto Trait Implementations§
impl Freeze for pm_alias_method_node
impl RefUnwindSafe for pm_alias_method_node
impl !Send for pm_alias_method_node
impl !Sync for pm_alias_method_node
impl Unpin for pm_alias_method_node
impl UnwindSafe for pm_alias_method_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