Struct ruby_prism::BlockArgumentNode
source · pub struct BlockArgumentNode<'pr> { /* private fields */ }
Expand description
Represents a block argument using &
.
bar(&args)
^^^^^^^^^^
Implementations§
source§impl<'pr> BlockArgumentNode<'pr>
impl<'pr> BlockArgumentNode<'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) -> Option<Node<'pr>>
pub fn expression(&self) -> Option<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
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for BlockArgumentNode<'pr>
impl<'pr> !Send for BlockArgumentNode<'pr>
impl<'pr> !Sync for BlockArgumentNode<'pr>
impl<'pr> Unpin for BlockArgumentNode<'pr>
impl<'pr> !UnwindSafe for BlockArgumentNode<'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