pm_pinned_expression_node_t

Type Alias pm_pinned_expression_node_t 

Source
pub type pm_pinned_expression_node_t = pm_pinned_expression_node;
Expand description

PinnedExpressionNode

Represents the use of the ^ operator for pinning an expression in a pattern matching expression.

 foo in ^(bar)
        ^^^^^^

Type: ::PM_PINNED_EXPRESSION_NODE

@extends pm_node_t

Aliased Type§

#[repr(C)]
pub struct pm_pinned_expression_node_t { pub base: pm_node, pub expression: *mut pm_node, pub operator_loc: pm_location_t, pub lparen_loc: pm_location_t, pub rparen_loc: pm_location_t, }

Fields§

§base: pm_node

The embedded base node.

§expression: *mut pm_node

PinnedExpressionNode#expression

The expression used in the pinned expression

 foo in ^(bar)
          ^^^
§operator_loc: pm_location_t

PinnedExpressionNode#operator_loc

The location of the ^ operator

 foo in ^(bar)
        ^
§lparen_loc: pm_location_t

PinnedExpressionNode#lparen_loc

The location of the opening parenthesis.

 foo in ^(bar)
         ^
§rparen_loc: pm_location_t

PinnedExpressionNode#rparen_loc

The location of the closing parenthesis.

 foo in ^(bar)
             ^