#[repr(C)]pub struct pm_class_node {
pub base: pm_node_t,
pub locals: pm_constant_id_list_t,
pub class_keyword_loc: pm_location_t,
pub constant_path: *mut pm_node,
pub inheritance_operator_loc: pm_location_t,
pub superclass: *mut pm_node,
pub body: *mut pm_node,
pub end_keyword_loc: pm_location_t,
pub name: pm_constant_id_t,
}Expand description
ClassNode
Represents a class declaration involving the class keyword.
class Foo end
^^^^^^^^^^^^^Type: ::PM_CLASS_NODE
@extends pm_node_t
Fields§
§base: pm_node_tThe embedded base node.
locals: pm_constant_id_list_tClassNode#locals
class_keyword_loc: pm_location_tClassNode#class_keyword_loc
Represents the location of the class keyword.
class Foo end
^^^^^constant_path: *mut pm_nodeClassNode#constant_path
inheritance_operator_loc: pm_location_tClassNode#inheritance_operator_loc
Represents the location of the < operator.
class Foo < Bar
^superclass: *mut pm_nodeClassNode#superclass
Represents the superclass of the class.
class Foo < Bar
^^^body: *mut pm_nodeClassNode#body
Represents the body of the class.
class Foo
foo
^^^end_keyword_loc: pm_location_tClassNode#end_keyword_loc
Represents the location of the end keyword.
class Foo end
^^^name: pm_constant_id_tClassNode#name
The name of the class.
class Foo end # name `:Foo`Trait Implementations§
Source§impl Clone for pm_class_node
impl Clone for pm_class_node
Source§fn clone(&self) -> pm_class_node
fn clone(&self) -> pm_class_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 moreSource§impl Debug for pm_class_node
impl Debug for pm_class_node
Source§impl Default for pm_class_node
impl Default for pm_class_node
impl Copy for pm_class_node
Auto Trait Implementations§
impl Freeze for pm_class_node
impl RefUnwindSafe for pm_class_node
impl !Send for pm_class_node
impl !Sync for pm_class_node
impl Unpin for pm_class_node
impl UnwindSafe for pm_class_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