pm_assoc_node_t

Type Alias pm_assoc_node_t 

Source
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_node

The embedded base node.

§key: *mut pm_node

AssocNode#key

The key of the association. This can be any non-void expression.

 { a: b }
   ^
 { foo => bar }
   ^^^
 { def a; end => 1 }
   ^^^^^^^^^^
§value: *mut pm_node

AssocNode#value

The value of the association, if present. This can be any non-void expression.

 { foo => bar }
          ^^^
 { x: 1 }
      ^
§operator_loc: pm_location_t

AssocNode#operator_loc

The location of the => operator, if present.

 { foo => bar }
       ^^