Struct ruby_prism::ParenthesesNode
source · pub struct ParenthesesNode<'pr> { /* private fields */ }
Expand description
Represents a parenthesized expression
(10 + 34)
^^^^^^^^^
Implementations§
source§impl<'pr> ParenthesesNode<'pr>
impl<'pr> ParenthesesNode<'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) -> Location<'pr>
pub fn opening_loc(&self) -> Location<'pr>
Returns the opening_loc
param
sourcepub fn closing_loc(&self) -> Location<'pr>
pub fn closing_loc(&self) -> Location<'pr>
Returns the closing_loc
param
Trait Implementations§
Auto Trait Implementations§
impl<'pr> RefUnwindSafe for ParenthesesNode<'pr>
impl<'pr> !Send for ParenthesesNode<'pr>
impl<'pr> !Sync for ParenthesesNode<'pr>
impl<'pr> Unpin for ParenthesesNode<'pr>
impl<'pr> !UnwindSafe for ParenthesesNode<'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