pub struct CapturePatternNode<'pr> { /* private fields */ }Expand description
Represents assigning to a local variable in pattern matching.
foo => [bar => baz]
^^^^^^^^^^^^Implementations§
Source§impl<'pr> CapturePatternNode<'pr>
impl<'pr> CapturePatternNode<'pr>
Sourcepub fn flags(&self) -> pm_node_flags_t
pub fn flags(&self) -> pm_node_flags_t
Returns the flags of this node.
Sourcepub fn target(&self) -> LocalVariableTargetNode<'pr>
pub fn target(&self) -> LocalVariableTargetNode<'pr>
Returns the target param
Sourcepub fn operator_loc(&self) -> Location<'pr>
pub fn operator_loc(&self) -> Location<'pr>
Returns the operator_loc param