#[repr(C)]pub struct pm_def_node {Show 13 fields
pub base: pm_node_t,
pub name: pm_constant_id_t,
pub name_loc: pm_location_t,
pub receiver: *mut pm_node,
pub parameters: *mut pm_parameters_node,
pub body: *mut pm_node,
pub locals: pm_constant_id_list_t,
pub def_keyword_loc: pm_location_t,
pub operator_loc: pm_location_t,
pub lparen_loc: pm_location_t,
pub rparen_loc: pm_location_t,
pub equal_loc: pm_location_t,
pub end_keyword_loc: pm_location_t,
}
Expand description
DefNode
Represents a method definition.
def method
end
^^^^^^^^^^
Type: ::PM_DEF_NODE
@extends pm_node_t
Fields§
§base: pm_node_t
The embedded base node.
name: pm_constant_id_t
DefNode#name
name_loc: pm_location_t
DefNode#name_loc
receiver: *mut pm_node
DefNode#receiver
parameters: *mut pm_parameters_node
DefNode#parameters
body: *mut pm_node
DefNode#body
locals: pm_constant_id_list_t
DefNode#locals
def_keyword_loc: pm_location_t
DefNode#def_keyword_loc
operator_loc: pm_location_t
DefNode#operator_loc
lparen_loc: pm_location_t
DefNode#lparen_loc
rparen_loc: pm_location_t
DefNode#rparen_loc
equal_loc: pm_location_t
DefNode#equal_loc
end_keyword_loc: pm_location_t
DefNode#end_keyword_loc
Trait Implementations§
Source§impl Clone for pm_def_node
impl Clone for pm_def_node
Source§fn clone(&self) -> pm_def_node
fn clone(&self) -> pm_def_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_def_node
impl Debug for pm_def_node
Source§impl Default for pm_def_node
impl Default for pm_def_node
impl Copy for pm_def_node
Auto Trait Implementations§
impl Freeze for pm_def_node
impl RefUnwindSafe for pm_def_node
impl !Send for pm_def_node
impl !Sync for pm_def_node
impl Unpin for pm_def_node
impl UnwindSafe for pm_def_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