Struct ruby_prism::MultiTargetNode
source · pub struct MultiTargetNode<'pr> { /* private fields */ }
Expand description
Represents a multi-target expression.
a, (b, c) = 1, 2, 3
^^^^^^
This can be a part of MultiWriteNode
as above, or the target of a for
loop
for a, b in [[1, 2], [3, 4]]
^^^^
Implementations§
source§impl<'pr> MultiTargetNode<'pr>
impl<'pr> MultiTargetNode<'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 lparen_loc(&self) -> Option<Location<'pr>>
pub fn lparen_loc(&self) -> Option<Location<'pr>>
Returns the lparen_loc
param
sourcepub fn rparen_loc(&self) -> Option<Location<'pr>>
pub fn rparen_loc(&self) -> Option<Location<'pr>>
Returns the rparen_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for MultiTargetNode<'pr>
impl<'pr> !Send for MultiTargetNode<'pr>
impl<'pr> !Sync for MultiTargetNode<'pr>
impl<'pr> Unpin for MultiTargetNode<'pr>
impl<'pr> !UnwindSafe for MultiTargetNode<'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