pub type pm_assoc_node_t = pm_assoc_node;Expand description
AssocNode
Represents a hash key/value pair.
{ a => b }
^^^^^^Type: ::PM_ASSOC_NODE
@extends pm_node_t
Aliased Type§
#[repr(C)]pub struct pm_assoc_node_t {
pub base: pm_node,
pub key: *mut pm_node,
pub value: *mut pm_node,
pub operator_loc: pm_location_t,
}Fields§
§base: pm_nodeThe embedded base node.
key: *mut pm_nodeAssocNode#key
The key of the association. This can be any non-void expression.
{ a: b }
^ { foo => bar }
^^^ { def a; end => 1 }
^^^^^^^^^^value: *mut pm_nodeAssocNode#value
The value of the association, if present. This can be any non-void expression.
{ foo => bar }
^^^ { x: 1 }
^operator_loc: pm_location_tAssocNode#operator_loc
The location of the => operator, if present.
{ foo => bar }
^^