pub struct PinnedExpressionNode<'pr> { /* private fields */ }
Expand description
Represents the use of the ^
operator for pinning an expression in a pattern matching expression.
foo in ^(bar)
^^^^^^
Implementations§
Source§impl<'pr> PinnedExpressionNode<'pr>
impl<'pr> PinnedExpressionNode<'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 expression(&self) -> Node<'pr>
pub fn expression(&self) -> Node<'pr>
Returns the expression
param
Sourcepub fn operator_loc(&self) -> Location<'pr>
pub fn operator_loc(&self) -> Location<'pr>
Returns the operator_loc
param
Sourcepub fn lparen_loc(&self) -> Location<'pr>
pub fn lparen_loc(&self) -> Location<'pr>
Returns the lparen_loc
param
Sourcepub fn rparen_loc(&self) -> Location<'pr>
pub fn rparen_loc(&self) -> Location<'pr>
Returns the rparen_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> Freeze for PinnedExpressionNode<'pr>
impl<'pr> RefUnwindSafe for PinnedExpressionNode<'pr>
impl<'pr> !Send for PinnedExpressionNode<'pr>
impl<'pr> !Sync for PinnedExpressionNode<'pr>
impl<'pr> Unpin for PinnedExpressionNode<'pr>
impl<'pr> !UnwindSafe for PinnedExpressionNode<'pr>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more