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_nodeThe embedded base node.
expression: *mut pm_nodePinnedExpressionNode#expression
The expression used in the pinned expression
foo in ^(bar)
^^^operator_loc: pm_location_tPinnedExpressionNode#operator_loc
The location of the ^ operator
foo in ^(bar)
^lparen_loc: pm_location_tPinnedExpressionNode#lparen_loc
The location of the opening parenthesis.
foo in ^(bar)
^rparen_loc: pm_location_tPinnedExpressionNode#rparen_loc
The location of the closing parenthesis.
foo in ^(bar)
^