pub type pm_hash_node_t = pm_hash_node;Expand description
HashNode
Represents a hash literal.
{ a => b }
^^^^^^^^^^Type: ::PM_HASH_NODE
@extends pm_node_t
Aliased Type§
#[repr(C)]pub struct pm_hash_node_t {
pub base: pm_node,
pub opening_loc: pm_location_t,
pub elements: pm_node_list,
pub closing_loc: pm_location_t,
}Fields§
§base: pm_nodeThe embedded base node.
opening_loc: pm_location_tHashNode#opening_loc
The location of the opening brace.
{ a => b }
^elements: pm_node_listHashNode#elements
The elements of the hash. These can be either AssocNodes or AssocSplatNodes.
{ a: b }
^^^^ { **foo }
^^^^^closing_loc: pm_location_tHashNode#closing_loc
The location of the closing brace.
{ a => b }
^