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 is_multiple_statements(&self) -> bool
pub fn is_multiple_statements(&self) -> bool
parentheses that contain multiple potentially void statements
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> Freeze for ParenthesesNode<'pr>
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