pub struct ArrayPatternNode<'pr> { /* private fields */ }Expand description
Represents an array pattern in pattern matching.
foo in 1, 2
^^^^^^^^^^^foo in [1, 2]
^^^^^^^^^^^^^foo in *bar
^^^^^^^^^^^foo in Bar[]
^^^^^^^^^^^^foo in Bar[1, 2, 3]
^^^^^^^^^^^^^^^^^^^Implementations§
Source§impl<'pr> ArrayPatternNode<'pr>
impl<'pr> ArrayPatternNode<'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 opening_loc(&self) -> Option<Location<'pr>>
pub fn opening_loc(&self) -> Option<Location<'pr>>
Returns the opening_loc param
Sourcepub fn closing_loc(&self) -> Option<Location<'pr>>
pub fn closing_loc(&self) -> Option<Location<'pr>>
Returns the closing_loc param