pm_capture_pattern_node_t

Type Alias pm_capture_pattern_node_t 

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

The embedded base node.

§value: *mut pm_node

CapturePatternNode#value

Represents the value to capture.

 foo => bar
        ^^^
§target: *mut pm_local_variable_target_node

CapturePatternNode#target

Represents the target of the capture.

 foo => bar
 ^^^
§operator_loc: pm_location_t

CapturePatternNode#operator_loc

Represents the location of the => operator.

 foo => bar
     ^^