pub type pm_capture_pattern_node_t = pm_capture_pattern_node;Expand description
CapturePatternNode
Represents assigning to a local variable in pattern matching.
foo => [bar => baz]
^^^^^^^^^^^^Type: ::PM_CAPTURE_PATTERN_NODE
@extends pm_node_t
Aliased Type§
#[repr(C)]pub struct pm_capture_pattern_node_t {
pub base: pm_node,
pub value: *mut pm_node,
pub target: *mut pm_local_variable_target_node,
pub operator_loc: pm_location_t,
}Fields§
§base: pm_nodeThe embedded base node.
value: *mut pm_nodeCapturePatternNode#value
Represents the value to capture.
foo => bar
^^^target: *mut pm_local_variable_target_nodeCapturePatternNode#target
Represents the target of the capture.
foo => bar
^^^operator_loc: pm_location_tCapturePatternNode#operator_loc
Represents the location of the => operator.
foo => bar
^^