Struct ruby_prism::PinnedExpressionNode
source · 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> 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